diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-07-14 13:37:13 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-28 11:00:15 -0700 |
commit | 78292f4ed2aa9f92eb7bef1e0e1cea14b705e378 (patch) | |
tree | 418e2cf9d1656f8fa2116ae60e68ecc18d94fe66 /drivers/mtd | |
parent | 13407ea802ad8ca4e830cee344e2d38dbce730f5 (diff) |
regulator: twl: Fix checking voltage range in twl6030smps_set_voltage()
The voltage selection logic is supposed to find the samllest voltage falls
within specified range. When using equation to calculate vsel, we need to
ensure the requested min_uV meet the range of using the equation.
Otherwise we may select a voltage that is out of specified range.
For example, in the case vsel = 62 means select voltage of 2100000uV.
What we want is to ensure the requested min_uV <= 2100000 rather than checking
max_uV >= 2100000. And this also means in the case min_uV > 2100000, vsel = 62
does not meet the request.
Also calling twl6030smps_list_voltage() for all cases to ensure the selected
voltage still in bounds.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions