summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_mpc52xx.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2012-12-28 13:09:03 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-08 15:14:35 +0400
commitbc3b7756b5ff66828acf7bc24f148d28b8d61108 (patch)
tree14dfc8893c6e4ab165ccfab438faa3b195a19a16 /drivers/ata/pata_mpc52xx.c
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed (diff)
downloadlinux-bc3b7756b5ff66828acf7bc24f148d28b8d61108.tar.xz
regulator: max8997: Use uV in voltage_map_desc
Current code does integer division (min_vol = min_uV / 1000) before pass min_vol to max8997_get_voltage_proper_val(). So it is possible min_vol is truncated to a smaller value. For example, if the request min_uV is 800900 for ldo. min_vol = 800900 / 1000 = 800 (mV) Then max8997_get_voltage_proper_val returns 800 mV for this case which is lower than the requested voltage. Use uV rather than mV in voltage_map_desc to prevent truncation by integer division. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/ata/pata_mpc52xx.c')
0 files changed, 0 insertions, 0 deletions