diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-07-20 16:56:45 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-24 15:48:01 +0100 |
commit | fba6583be610dd83369ecba88d7ee84527d00cf1 (patch) | |
tree | fff010b0b836991fbaa62a81ec0e6bab49f082b3 /drivers/regulator/wm831x-isink.c | |
parent | 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff) | |
download | blackbird-op-linux-fba6583be610dd83369ecba88d7ee84527d00cf1.tar.gz blackbird-op-linux-fba6583be610dd83369ecba88d7ee84527d00cf1.zip |
regulator: tps65912: Convert tps65912_ops_ldo to use linear ranges
The ldo voltage table is composed of linear ranges.
Below is the equation in original code (tps65912_vsel_to_uv_ldo):
0 ... 32: uv = vsel * 25000 + 800000;
33 ... 60: uv = (vsel - 32) * 50000 + 1600000;
= (vsel -33) * 50000 + 1650000;
61 ...63: uv = (vsel - 60) * 100000 + 3000000;
= (vsel - 61) * 100000 + 3100000;
This patch converts tps65912_ops_ldo to use multiple linear ranges APIs.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/wm831x-isink.c')
0 files changed, 0 insertions, 0 deletions