summaryrefslogtreecommitdiff
path: root/drivers/regulator/Makefile
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.daniel@samsung.com>2014-07-15 15:02:53 +0400
committerMark Brown <broonie@linaro.org>2014-08-17 01:51:16 +0400
commit5a867cf288934c26f3034ace189bda25700c68fa (patch)
tree645b05f5c643a2a0b2fd1349e81f3de42326e20d /drivers/regulator/Makefile
parentd264fd4541753bf3fe2613805b3cab95b54a3f32 (diff)
downloadlinux-5a867cf288934c26f3034ace189bda25700c68fa.tar.xz
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/Makefile')
0 files changed, 0 insertions, 0 deletions