]> git.karo-electronics.de Git - karo-tx-linux.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)
commit3796fb8ac40920e04ed36e45b1b40d13aec3909d
treea92559c0708ed83bf08326e8fd6af020ca748700
parent5934df2f10a48d048fafe0d3c8b242a7c9106e69
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