aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@marvell.com>2010-05-04 09:54:51 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-05-25 05:16:02 -0400
commit9f79e9db2e282857912bcfe7f741bcdd5c46e860 (patch)
tree690e0647b56032ef703112e6e03c0b65ddaea10c /drivers/mfd
parent192bbb95ca16f2b4d4383e76b3262672e6116daa (diff)
regulator: use voltage number array in 88pm860x
A lot of condition comparision statements are used in original driver. These statements are used to check the boundary of voltage numbers since voltage number isn't linear. Now use array of voltage numbers instead. Clean code with simpler way. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/88pm860x-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/88pm860x-core.c b/drivers/mfd/88pm860x-core.c
index 21de38daf948..405d2d5183cf 100644
--- a/drivers/mfd/88pm860x-core.c
+++ b/drivers/mfd/88pm860x-core.c
@@ -173,6 +173,7 @@ static struct resource regulator_resources[] = {
173 PM8607_REG_RESOURCE(LDO9, LDO9), 173 PM8607_REG_RESOURCE(LDO9, LDO9),
174 PM8607_REG_RESOURCE(LDO10, LDO10), 174 PM8607_REG_RESOURCE(LDO10, LDO10),
175 PM8607_REG_RESOURCE(LDO12, LDO12), 175 PM8607_REG_RESOURCE(LDO12, LDO12),
176 PM8607_REG_RESOURCE(VIBRATOR_SET, VIBRATOR_SET),
176 PM8607_REG_RESOURCE(LDO14, LDO14), 177 PM8607_REG_RESOURCE(LDO14, LDO14),
177}; 178};
178 179
@@ -199,6 +200,7 @@ static struct mfd_cell regulator_devs[] = {
199 PM8607_REG_DEVS(LDO9), 200 PM8607_REG_DEVS(LDO9),
200 PM8607_REG_DEVS(LDO10), 201 PM8607_REG_DEVS(LDO10),
201 PM8607_REG_DEVS(LDO12), 202 PM8607_REG_DEVS(LDO12),
203 PM8607_REG_DEVS(LDO13),
202 PM8607_REG_DEVS(LDO14), 204 PM8607_REG_DEVS(LDO14),
203}; 205};
204 206