]> git.openfabrics.org - ~emulex/infiniband.git/commit
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)
commitccfcb1c3cf5616ebd9c61e6c834af3b87fe6b7f7
tree86e098faa2a9db347395fdf814b15593ec5ebd69
parent684ae39b91ee7fd2855c35be7f3bf226d42516a5
regulator: core: Ensure simple linear voltage mappings falls within the specified range

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>
drivers/regulator/core.c