lkml.org 
[lkml]   [2023]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] regulator: rt5759: Fix cannot change operation mode.
Date
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
\
 
 \ /
  Last update: 2023-08-31 10:56    [W:0.084 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site