diff options
author | Andy Shevchenko <ext-andriy.shevchenko@nokia.com> | 2011-05-10 16:51:54 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-07-21 18:35:02 +0400 |
commit | ac330f44c6bcc5f8ef7eb6ea7fd00575a1d5ef1a (patch) | |
tree | d2797250070bb1a7b833113deef6962ff7706065 /drivers/rtc | |
parent | 6b206efeccacafc8cd0cc0b72ff92f2be175ca9e (diff) | |
download | linux-ac330f44c6bcc5f8ef7eb6ea7fd00575a1d5ef1a.tar.xz |
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>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions