regulator: max8998: Use uV in voltage_map_desc
authorAxel Lin <axel.lin@ingics.com>
Fri, 28 Dec 2012 09:10:20 +0000 (17:10 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Jan 2013 11:16:11 +0000 (11:16 +0000)
commitadf6178ad5552a7f2f742a8c85343c50f080c412
tree7457c8597195296346b42cc90f75b00249d8dcbb
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed
regulator: max8998: Use uV in voltage_map_desc

Integer division may truncate.
This happens when pdata->buckx_voltagex setting is not align with 1000 uV.
Thus use uV in voltage_map_desc, this ensures the selected voltage won't less
than pdata buckx_voltagex settings.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
drivers/regulator/max8998.c