ata/pata_arasan_cf: fill dma chan->private from pdata->dma_priv
authorViresh Kumar <viresh.kumar@st.com>
Fri, 4 Mar 2011 11:09:29 +0000 (16:39 +0530)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 14 Mar 2011 06:58:03 +0000 (02:58 -0400)
commit60a230e4a62be6837335911b09101bd8aeb7c95a
tree81eaf5ffaef68320dbbdd62bec7142f603609420
parent8d7b1c70b3c1aac4b63109f5c73f732f1d63fad6
ata/pata_arasan_cf: fill dma chan->private from pdata->dma_priv

Some DMA controllers (eg: drivers/dma/dw_dmac*) allow platform specific
configuration for dma transfers. User drivers need to set chan->private field
of channel with pointer to configuration data. This patch takes dma_priv data
from platform data and passes it to chan->private_data, in order to pass
platform specific configuration to DMAC controller.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/ata/pata_arasan_cf.c
include/linux/pata_arasan_cf_data.h