Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: twl: Fix a typo in twl4030_send_pb_msg

Commit <2330b05c095bdeaaf1261c54cd2d4b9127496996> ("regulator: twl: Make
sure we have access to powerbus before trying to write to it")
has implemented the needed logic to correctly access powerbus through i2c,
however it brought a typo when powerbus configuration is restored, which
results in writing to a wrong register. Fix that by providing the correct
register value.

Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Ivaylo Dimitrov and committed by
Mark Brown
74d8b45f a221f95e

+1 -1
+1 -1
drivers/regulator/twl-regulator.c
··· 253 253 254 254 /* Restore powerbus configuration */ 255 255 return twl_i2c_write_u8(TWL_MODULE_PM_MASTER, val, 256 - TWL_MODULE_PM_MASTER); 256 + TWL4030_PM_MASTER_PB_CFG); 257 257 } 258 258 259 259 static int twl4030reg_enable(struct regulator_dev *rdev)