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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:39 +0000 (08:46 -0800)
commitd7fe0a4e2263fa4c01be523b983b5781edb19ae3
tree9d52418b6908b8393712954ee183bba6d483675c
parente25286fe7b20849d6e3b447d513b16a1423a76ef
regulator: max8998: Use uV in voltage_map_desc

commit adf6178ad5552a7f2f742a8c85343c50f080c412 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/max8998.c