]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: tps65023: Fix mask for LDOs output voltage select control
authorAxel Lin <axel.lin@gmail.com>
Thu, 14 Jun 2012 05:55:25 +0000 (13:55 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 17 Jun 2012 19:56:54 +0000 (20:56 +0100)
commitabdff078c7a79b7dc1fef6db16bc1c4a7b976936
treea4a3906fd018c64ba91b711714ae8abbfc3aa711
parentbf2c23cae2b6c2ffdbfaa94a1e2d9be2ca504e80
regulator: tps65023: Fix mask for LDOs output voltage select control

According to the datasheet:
The LDO_CTRL registers are used to set the output voltage of LDO1 and LDO2.
LDO_CTRL[7] and LDO_CTRL[3] are reserved and should always be written to 0.

Thus the mask for TPS65023_LDO_1 and TPS65023_LDO_2 should be 0x07 and 0x70
respectively.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65023-regulator.c