regulator: core: Ensure simple linear voltage mappings falls within the specified...
authorAxel Lin <axel.lin@gmail.com>
Mon, 14 May 2012 02:33:37 +0000 (10:33 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 14 May 2012 08:11:34 +0000 (09:11 +0100)
Integer division may truncate the result.
Use DIV_ROUND_UP to ensure simple linear voltage mappings falls within the
specified range.

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

No differences found