regulator: palmas: Fix "enable_reg" to point to the correct reg for SMPS10
Subsystems (2)
PATCH 1/1 regulator: palmas: Fix "enable_reg" to point to the correct reg for SMPS10
regulator_enable_regmap() uses enable_reg to enable the regulator. But enable_reg for smps10 points to SMPS10_STATUS which is a read-only register. Fixed the same by having enable_reg set to SMPS10_CTRL.
Signed-off-by Kishon Vijay Abraham I <[email protected]>
--- drivers/regulator/palmas-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/palmas-regulator.c +1 -1
@@ -878,7 +878,7 @@ static int palmas_regulators_probe(struct platform_device *pdev) pmic->desc[id].vsel_mask =SMPS10_VSEL ; pmic->desc[id].enable_reg =PALMAS_BASE_TO_REG (PALMAS_SMPS_BASE , -PALMAS_SMPS10_STATUS ); +PALMAS_SMPS10_CTRL ); pmic->desc[id].enable_mask =SMPS10_BOOST_EN ; pmic->desc[id].min_uV =3750000 ; pmic->desc[id].uV_step =1250000 ;
Signature · 1 line
1.7.10.4
Quoted 4 lines · Kishon Vijay Abraham I
regulator_enable_regmap()usesenable_regto enable the regulator. Butenable_regfor smps10 points toSMPS10_STATUSwhich is a read-only register. Fixed the same by havingenable_regset toSMPS10_CTRL.
Applied, thanks.