linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] regulator: rt5759: Fix cannot change operation mode.
@ 2023-08-31  8:56 Wells Lu
  0 siblings, 0 replies; only message in thread
From: Wells Lu @ 2023-08-31  8:56 UTC (permalink / raw)
  To: linus.walleij, linux-gpio, linux-kernel; +Cc: wells.lu, Wells Lu

Wrong register was used in setting operaton mode function.

Signed-off-by: Wells Lu <wellslutw@gmail.com>
---
 drivers/regulator/rt5759-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/rt5759-regulator.c b/drivers/regulator/rt5759-regulator.c
index c2553dc..3a2eaa7 100644
--- a/drivers/regulator/rt5759-regulator.c
+++ b/drivers/regulator/rt5759-regulator.c
@@ -70,7 +70,7 @@ static int rt5759_set_mode(struct regulator_dev *rdev, unsigned int mode)
 		return -EINVAL;
 	}
 
-	return regmap_update_bits(regmap, RT5759_REG_STATUS, RT5759_FPWM_MASK,
+	return regmap_update_bits(regmap, RT5759_REG_DCDCCTRL, RT5759_FPWM_MASK,
 				  mode_val);
 }
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-31  8:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31  8:56 [PATCH] regulator: rt5759: Fix cannot change operation mode Wells Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).