commit | ccfcb1c3cf5616ebd9c61e6c834af3b87fe6b7f7 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Mon May 14 10:33:37 2012 +0800 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Mon May 14 09:11:34 2012 +0100 |
tree | 86e098faa2a9db347395fdf814b15593ec5ebd69 | |
parent | 684ae39b91ee7fd2855c35be7f3bf226d42516a5 [diff] |
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>