diff options
author | Amit Daniel Kachhap | 2014-07-15 16:32:53 +0530 |
---|---|---|
committer | Mark Brown | 2014-08-16 16:51:16 -0500 |
commit | 5a867cf288934c26f3034ace189bda25700c68fa (patch) | |
tree | 645b05f5c643a2a0b2fd1349e81f3de42326e20d /.mailmap | |
parent | d264fd4541753bf3fe2613805b3cab95b54a3f32 (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 '.mailmap')
0 files changed, 0 insertions, 0 deletions