]> git.baikalelectronics.ru Git - kernel.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 <chris@printf.net>
Mon, 13 Jan 2014 17:48:25 +0000 (12:48 -0500)
commit1eec8ba7806b1d7d0c6ea4faf44bc8beeeaa72e6
tree77c100b8c11c31e95e69a56aea6be92bbfeed255
parenta909431c736ca0d4353b46b75cce11f39c780af1
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