]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b9f278b054d6ca9169dd380e8ba7bcac9b83e86
treed2797250070bb1a7b833113deef6962ff7706065
parent33440feace9a9e878178c0c80d9dcc2cd59d2e93
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