]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: omap_hsmmc: refactor duplicated code
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>
Wed, 13 Jul 2011 15:31:15 +0000 (11:31 -0400)
committerChris Ball <cjb@laptop.org>
Thu, 21 Jul 2011 14:35:03 +0000 (10:35 -0400)
commitd481309ee168aafe829b2b5b55cd5b31dd19a463
treea92559c0708ed83bf08326e8fd6af020ca748700
parentea5262cd2113d10d999409fd8c988dd7b0612f78
mmc: omap_hsmmc: refactor duplicated code

There are a few places with the same functionality. This patch creates
two functions omap_hsmmc_set_bus_width() and omap_hsmmc_set_bus_mode()
to do the job.

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