regulator: twl: add twl6030 get_status
authorSaquib Herman <saquib@ti.com>
Fri, 1 Apr 2011 04:52:45 +0000 (10:22 +0530)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:34:36 +0000 (10:34 +0100)
commit9a0244ad719258b0ae6064ad7da937cddcb109e0
tree9167b909da9d98cc576a2443be74a49739b0f316
parentb2456779f39e33ad63a63aabe9af77d1113f106e
regulator: twl: add twl6030 get_status

Current get_status logic does not support 6030 get_status.
The logic for 4030 is not reusable for 6030 as the status
check for 6030 now depends on the new CFG_STATE register.
We hence rename the old get_status as being specific to
4030 and remove the redundant check for the same.

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