]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Use DIV_ROUND_CLOSEST in wm8350_isink_get_current
authorAxel Lin <axel.lin@gmail.com>
Mon, 12 Mar 2012 02:17:56 +0000 (10:17 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 12 Mar 2012 10:48:18 +0000 (10:48 +0000)
commit7ac62ceb28d71a400ca383b39d064308417ce63b
tree474c7a3fe80bc3f4efb5fc462df2087b959c4b94
parent3b7b1e7834016426a30001ab3301908283559698
regulator: Use DIV_ROUND_CLOSEST in wm8350_isink_get_current

DIV_ROUND_CLOSEST performs the computation (x + d/2)/d with better readability.

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