commit | ac330f44c6bcc5f8ef7eb6ea7fd00575a1d5ef1a | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <ext-andriy.shevchenko@nokia.com> | Tue May 10 15:51:54 2011 +0300 |
committer | Chris Ball <cjb@laptop.org> | Thu Jul 21 10:35:02 2011 -0400 |
tree | d2797250070bb1a7b833113deef6962ff7706065 | |
parent | 6b206efeccacafc8cd0cc0b72ff92f2be175ca9e [diff] |
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>