mmc: omap_hsmmc: split duplicate code to calc_divisor() function
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>
Tue, 10 May 2011 12:51:54 +0000 (15:51 +0300)
committerChris Ball <cjb@laptop.org>
Thu, 21 Jul 2011 14:35:02 +0000 (10:35 -0400)
commitac330f44c6bcc5f8ef7eb6ea7fd00575a1d5ef1a
treed2797250070bb1a7b833113deef6962ff7706065
parent6b206efeccacafc8cd0cc0b72ff92f2be175ca9e
mmc: omap_hsmmc: split duplicate code to calc_divisor() function

There are two places where the same calculations are done.
Let's split them into a separate function.

In addition, simplify by using the DIV_ROUND_UP kernel macro.

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c