summaryrefslogtreecommitdiffstats
path: root/Documentation/SM501.txt
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.daniel@samsung.com>2014-07-15 13:02:52 +0200
committerMark Brown <broonie@linaro.org>2014-08-16 23:51:16 +0200
commitd264fd4541753bf3fe2613805b3cab95b54a3f32 (patch)
tree0439f29aff30567bc89e8591090402c96e248703 /Documentation/SM501.txt
parentregulator: s2mpxxx: Move regulator min/step voltages in common place (diff)
downloadlinux-d264fd4541753bf3fe2613805b3cab95b54a3f32.tar.xz
linux-d264fd4541753bf3fe2613805b3cab95b54a3f32.zip
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 'Documentation/SM501.txt')
0 files changed, 0 insertions, 0 deletions