Hi Heiner, On 2017/3/24 5:17, Heiner Kallweit wrote:
Several host drivers contain identical code for determining the DMA direction. Therefore factor this out to the core.
I like this patchset, at least it removes more lines than insertions :) Only a small nit, s3cmci_prepare_dma seems need some more cleanup as the rw variable isn't useful personally. Anyway, Reviewed-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx>
Heiner Kallweit (2): mmc: core: add mmc_get_dma_dir mmc: use new core function mmc_get_dma_dir drivers/mmc/host/android-goldfish.c | 10 ++-------- drivers/mmc/host/atmel-mci.c | 6 ++---- drivers/mmc/host/davinci_mmc.c | 10 +++------- drivers/mmc/host/dw_mmc.c | 14 +++----------- drivers/mmc/host/jz4740_mmc.c | 9 ++------- drivers/mmc/host/mmc_spi.c | 5 +---- drivers/mmc/host/mtk-sd.c | 8 ++------ drivers/mmc/host/mvsdio.c | 11 +++++------ drivers/mmc/host/omap_hsmmc.c | 17 ++++------------- drivers/mmc/host/s3cmci.c | 4 ++-- drivers/mmc/host/sdhci.c | 9 +++------ drivers/mmc/host/sunxi-mmc.c | 14 +++----------- include/linux/mmc/host.h | 6 ++++++ 13 files changed, 38 insertions(+), 85 deletions(-)
-- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html