aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/fifo.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@linux.intel.com>2011-10-14 12:27:58 -0400
committerVinod Koul <vinod.koul@linux.intel.com>2011-11-17 04:06:16 -0500
commit55ba4e5ed4ac57b60fe56acfd324f6a87123cc34 (patch)
tree9b6074ad7846d9e38523bad3520c280b0c7a86f1 /drivers/usb/renesas_usbhs/fifo.c
parent8341544c9d95610f86b560333c7b22dd1096ca4f (diff)
USB-renesas: move to dma_transfer_direction
fixup usage of dma direction by introducing dma_transfer_direction, this patch moves usb/renesas driver to use new enum Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com> Cc: Felipe Balbi <balbi@ti.com> Cc: Greg Kroah-Hartman <gregkh@suse.de> Acked-by: Felipe Balbi <balbi@ti.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/fifo.c')
-rw-r--r--drivers/usb/renesas_usbhs/fifo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c
index a34430f55fb7..051c9a9337a3 100644
--- a/drivers/usb/renesas_usbhs/fifo.c
+++ b/drivers/usb/renesas_usbhs/fifo.c
@@ -591,10 +591,10 @@ static void usbhsf_dma_prepare_tasklet(unsigned long data)
591 struct dma_async_tx_descriptor *desc; 591 struct dma_async_tx_descriptor *desc;
592 struct dma_chan *chan = usbhsf_dma_chan_get(fifo, pkt); 592 struct dma_chan *chan = usbhsf_dma_chan_get(fifo, pkt);
593 struct device *dev = usbhs_priv_to_dev(priv); 593 struct device *dev = usbhs_priv_to_dev(priv);
594 enum dma_data_direction dir; 594 enum dma_transfer_direction dir;
595 dma_cookie_t cookie; 595 dma_cookie_t cookie;
596 596
597 dir = usbhs_pipe_is_dir_in(pipe) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; 597 dir = usbhs_pipe_is_dir_in(pipe) ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV;
598 598
599 sg_init_table(&sg, 1); 599 sg_init_table(&sg, 1);
600 sg_set_page(&sg, virt_to_page(pkt->dma), 600 sg_set_page(&sg, virt_to_page(pkt->dma),