summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/s2mps11.c
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.daniel@samsung.com>2014-07-15 16:32:52 +0530
committerMark Brown <broonie@linaro.org>2014-08-16 16:51:16 -0500
commitd264fd4541753bf3fe2613805b3cab95b54a3f32 (patch)
tree0439f29aff30567bc89e8591090402c96e248703 /drivers/regulator/s2mps11.c
parent0e4f417857083f399769491f6e7773d111debd0f (diff)
downloadlinux-d264fd4541753bf3fe2613805b3cab95b54a3f32.tar.bz2
regulator: s2mpa01: 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/s2mps11.c')
0 files changed, 0 insertions, 0 deletions