]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sh_mmcif: Factorize DMA channel request and configuration code
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 30 Oct 2013 11:34:51 +0000 (12:34 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 12 Dec 2013 02:20:51 +0000 (21:20 -0500)
commit67e906ca4d734d81cba0423efef8a0a854a43334
tree93eeaa801879544599ab9d1df4d64e046f5d724f
parent60eafa0fc4fbddcc1280389746fd5a36acdb3952
mmc: sh_mmcif: Factorize DMA channel request and configuration code

The channel request and configuration code is duplicated for the rx and
tx channels. Create a function that requests a single channel and call
it twice instead.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c