]> git.sur5r.net Git - u-boot/commit
replace DIV_ROUND with DIV_ROUND_CLOSEST
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 6 Nov 2014 18:03:26 +0000 (03:03 +0900)
committerTom Rini <trini@ti.com>
Thu, 20 Nov 2014 16:28:25 +0000 (11:28 -0500)
commit4515992fc7849c51997e3ff2d00352e36e14ebd7
treeb077195b0059735c2a4ed5648672b5a1d4e6e8f3
parent3fd968e9314942f2840f8f9fda98079cc0d82288
replace DIV_ROUND with DIV_ROUND_CLOSEST

The Linux-compatible macro DIV_ROUND_CLOSEST is a bit more flexible
and safer than DIV_ROUND.

For example,
  foo = DIV_ROUND_CLOSEST(x, y++)
works expectedly, but
  foo = DIV_ROUND(x, y++)
does not. (y is incremented twice.)

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c
arch/arm/cpu/armv7/omap-common/abb.c
drivers/misc/mxc_ocotp.c
lib/strmhz.c