Skip to contentSkip to conversation

regulator: rt5759: Fix cannot change operation mode.

PATCH New Wells Lu 1 participant 1 message Aug 31, 2023

Subsystems (2)
lore
Share & tools
lore

Wells Lu

author
#0 lore raw

PATCH 1/1 regulator: rt5759: Fix cannot change operation mode.

Wrong register was used in setting operaton mode function.

---
 drivers/regulator/rt5759-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/rt5759-regulator.c +1 -1
index c2553dc..3a2eaa7 100644
@@ -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);
 }
 
Signature · 1 line
2.7.4