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)
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>

No differences found