mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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>
This commit is contained in:
committed by
Liam Girdwood
parent
192bbb95ca
commit
9f79e9db2e
@@ -173,6 +173,7 @@ static struct resource regulator_resources[] = {
|
||||
PM8607_REG_RESOURCE(LDO9, LDO9),
|
||||
PM8607_REG_RESOURCE(LDO10, LDO10),
|
||||
PM8607_REG_RESOURCE(LDO12, LDO12),
|
||||
PM8607_REG_RESOURCE(VIBRATOR_SET, VIBRATOR_SET),
|
||||
PM8607_REG_RESOURCE(LDO14, LDO14),
|
||||
};
|
||||
|
||||
@@ -199,6 +200,7 @@ static struct mfd_cell regulator_devs[] = {
|
||||
PM8607_REG_DEVS(LDO9),
|
||||
PM8607_REG_DEVS(LDO10),
|
||||
PM8607_REG_DEVS(LDO12),
|
||||
PM8607_REG_DEVS(LDO13),
|
||||
PM8607_REG_DEVS(LDO14),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user