regulator: twl: fix twl6030 enable/disable
authorSaquib Herman <saquib@ti.com>
Fri, 1 Apr 2011 04:52:42 +0000 (10:22 +0530)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:34:36 +0000 (10:34 +0100)
commit21657ebf868b9c7c6c0cab15a6797c3f1af64295
treed97474e12913d7bf01b9b04c6b4d0312fcfccf64
parentf0f060bdd55e36adff4cc80b2a4ed026774db7a9
regulator: twl: fix twl6030 enable/disable

TWL6030 requires an additional register write to CFG_STATE register
to explicitly state that the regulator is in a certain state. Merely
associating the regulator with the group is not enough. Add the
required register field definitions and fix the handling for
TWL6030 enable/disable.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Saquib Herman <saquib@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@vega.(none)>
drivers/regulator/twl-regulator.c