aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-05-03 10:31:56 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-05-23 15:11:51 -0400
commit26955c07dcf3c36b6427e52fec0f725300ca079e (patch)
treeeb6a3ff98566809292403701019bdf1a42e151f1 /include/linux/platform_data
parent4f8fc46c797015dddc1d4c76e1b485b57373683b (diff)
dmaengine: ste_dma40: Amalgamate DMA source and destination channel numbers
Devices which utilise DMA use the same device numbers for transmitting and receiving. In this patch we encode the source and destination information into one single attribute. We can subsequently exploit the direction attribute to see which of the transfer directions are being described. This also lessens the burden on platform data. Cc: Dan Williams <djbw@fb.com> Cc: Per Forlin <per.forlin@stericsson.com> Cc: Rabin Vincent <rabin@rab.in> Acked-by: Vinod Koul <vinod.koul@intel.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/dma-ste-dma40.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/platform_data/dma-ste-dma40.h b/include/linux/platform_data/dma-ste-dma40.h
index 869c571c8c08..9e42a67d0cd5 100644
--- a/include/linux/platform_data/dma-ste-dma40.h
+++ b/include/linux/platform_data/dma-ste-dma40.h
@@ -109,8 +109,7 @@ struct stedma40_half_channel_info {
109 * version 3+, i.e DB8500v2+ 109 * version 3+, i.e DB8500v2+
110 * @mode: channel mode: physical, logical, or operation 110 * @mode: channel mode: physical, logical, or operation
111 * @mode_opt: options for the chosen channel mode 111 * @mode_opt: options for the chosen channel mode
112 * @src_dev_type: Src device type 112 * @dev_type: src/dst device type (driver uses dir to figure out which)
113 * @dst_dev_type: Dst device type
114 * @src_info: Parameters for dst half channel 113 * @src_info: Parameters for dst half channel
115 * @dst_info: Parameters for dst half channel 114 * @dst_info: Parameters for dst half channel
116 * @use_fixed_channel: if true, use physical channel specified by phy_channel 115 * @use_fixed_channel: if true, use physical channel specified by phy_channel
@@ -126,8 +125,7 @@ struct stedma40_chan_cfg {
126 bool realtime; 125 bool realtime;
127 enum stedma40_mode mode; 126 enum stedma40_mode mode;
128 enum stedma40_mode_opt mode_opt; 127 enum stedma40_mode_opt mode_opt;
129 int src_dev_type; 128 int dev_type;
130 int dst_dev_type;
131 struct stedma40_half_channel_info src_info; 129 struct stedma40_half_channel_info src_info;
132 struct stedma40_half_channel_info dst_info; 130 struct stedma40_half_channel_info dst_info;
133 131