]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Fix the logic of tps65910_get_mode
authorAxel Lin <axel.lin@gmail.com>
Mon, 12 Mar 2012 23:15:27 +0000 (07:15 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 13 Mar 2012 23:18:03 +0000 (23:18 +0000)
commit716ab2acf4defa47429221606c0663de7483b68e
treefeb819b4befd6c48c2bb8e68f6f024db8bf3be40
parent7ea48483a7454947aac811b5e04a18059c35bf90
regulator: Fix the logic of tps65910_get_mode

We actually clear LDO_ST_ON_BIT for standby mode in tps65910_set_mode.
Fix the logic in tps65910_get_mode.

Supply state (EEPROM bits):
ST[1:0] = 00 : Off
ST[1:0] = 01 : On high power (ACTIVE)
ST[1:0] = 10 : Off
ST[1:0] = 11 : On low power (SLEEP)

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65910-regulator.c