summaryrefslogtreecommitdiff
path: root/drivers/regulator/lp8755.c
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.daniel@samsung.com>2014-07-15 16:32:53 +0530
committerMark Brown <broonie@linaro.org>2014-08-16 16:51:16 -0500
commit5a867cf288934c26f3034ace189bda25700c68fa (patch)
tree645b05f5c643a2a0b2fd1349e81f3de42326e20d /drivers/regulator/lp8755.c
parentd264fd4541753bf3fe2613805b3cab95b54a3f32 (diff)
regulator: s2mps11: Optimize the regulator description macro
This patch makes the regulator description macro take minimum and steps voltage as parameter. In this way many repeated macros can be removed. Now these macros are repeated only if the the LDO/BUCK ctrl registers have non-linear positions. The good thing is these ctrl registers are mostly linear so they are not passed as parameters. This patch reduces the code size and also allow easy addition of more s2mpxxx PMIC drivers which differs a lot in minimum/step voltages. Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/lp8755.c')
0 files changed, 0 insertions, 0 deletions