summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps62360-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-05-14 04:33:37 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-14 10:11:34 +0200
commitccfcb1c3cf5616ebd9c61e6c834af3b87fe6b7f7 (patch)
tree86e098faa2a9db347395fdf814b15593ec5ebd69 /drivers/regulator/tps62360-regulator.c
parentregulator: tps62360: add dt support (diff)
downloadlinux-ccfcb1c3cf5616ebd9c61e6c834af3b87fe6b7f7.tar.xz
linux-ccfcb1c3cf5616ebd9c61e6c834af3b87fe6b7f7.zip
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>
Diffstat (limited to 'drivers/regulator/tps62360-regulator.c')
0 files changed, 0 insertions, 0 deletions