]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: da9052: Ensure the selected voltage falls within the specified range
authorAxel Lin <axel.lin@gmail.com>
Mon, 5 Mar 2012 12:27:56 +0000 (20:27 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 11 Mar 2012 20:39:10 +0000 (20:39 +0000)
commita5a93151e94bdf4f694f7b75cabddca172a8c99a
tree2cb60af6d279a16cf76e560e40982eb0bb7904c4
parent6d9d1e3634e2d5b048e9754fa4ca81f3f1961453
regulator: da9052: Ensure the selected voltage falls within the specified range

Integer division may truncate the result, use DIV_ROUND_UP to ensure the
selected voltage falls within the specified range.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/da9052-regulator.c