]> git.sur5r.net Git - u-boot/commit
mmc: sh_mmcif: Use DIV_ROUND_UP and fls instead of calculation loop
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Wed, 3 Dec 2014 08:57:00 +0000 (17:57 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 5 Dec 2014 02:15:11 +0000 (11:15 +0900)
commit21ea350385149e0e96c51b2cac5e91cd4fd143bc
tree75e007c78a848f003dfc07cf07b2d5dcfb0ca05f
parent97cdf64026c7d749dd7a5c0dbaba7a60a7292ac9
mmc: sh_mmcif: Use DIV_ROUND_UP and fls instead of calculation loop

Use DIV_ROUND_UP and fls to simplify the code.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/mmc/sh_mmcif.c