aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-03-19 04:46:38 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-03-23 17:19:30 +0900
commit4bab9d426e6dbd9ea09330919a33d35d5faab400 (patch)
treecb78032733f4a45e8b36719b70854cc567b56b55 /arch/sh/include
parentae6be51ed01d6c4aaf249a207b4434bc7785853b (diff)
downloadkernel_samsung_smdk4412-4bab9d426e6dbd9ea09330919a33d35d5faab400.zip
kernel_samsung_smdk4412-4bab9d426e6dbd9ea09330919a33d35d5faab400.tar.gz
kernel_samsung_smdk4412-4bab9d426e6dbd9ea09330919a33d35d5faab400.tar.bz2
dmaengine: shdma: Remove sh_dmae_slave_chan_id enum
This patch replaces the sh_dmae_slave_chan_id enum with an unsigned int. The purpose of this chainge is to make it possible to separate the slave id enums from the dmaengine header. The slave id enums varies with processor model, so in the future it makes sense to put these in the processor specific headers together with the pinmux enums. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r--arch/sh/include/asm/dmaengine.h6
-rw-r--r--arch/sh/include/asm/siu.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/sh/include/asm/dmaengine.h b/arch/sh/include/asm/dmaengine.h
index bf2f30c..568e991 100644
--- a/arch/sh/include/asm/dmaengine.h
+++ b/arch/sh/include/asm/dmaengine.h
@@ -17,7 +17,7 @@
#define SH_DMAC_MAX_CHANNELS 6
-enum sh_dmae_slave_chan_id {
+enum {
SHDMA_SLAVE_SCIF0_TX,
SHDMA_SLAVE_SCIF0_RX,
SHDMA_SLAVE_SCIF1_TX,
@@ -38,7 +38,7 @@ enum sh_dmae_slave_chan_id {
};
struct sh_dmae_slave_config {
- enum sh_dmae_slave_chan_id slave_id;
+ unsigned int slave_id;
dma_addr_t addr;
u32 chcr;
char mid_rid;
@@ -68,7 +68,7 @@ struct device;
/* Used by slave DMA clients to request DMA to/from a specific peripheral */
struct sh_dmae_slave {
- enum sh_dmae_slave_chan_id slave_id; /* Set by the platform */
+ unsigned int slave_id; /* Set by the platform */
struct device *dma_dev; /* Set by the platform */
struct sh_dmae_slave_config *config; /* Set by the driver */
};
diff --git a/arch/sh/include/asm/siu.h b/arch/sh/include/asm/siu.h
index f1b1e69..e8d4142 100644
--- a/arch/sh/include/asm/siu.h
+++ b/arch/sh/include/asm/siu.h
@@ -17,10 +17,10 @@ struct device;
struct siu_platform {
struct device *dma_dev;
- enum sh_dmae_slave_chan_id dma_slave_tx_a;
- enum sh_dmae_slave_chan_id dma_slave_rx_a;
- enum sh_dmae_slave_chan_id dma_slave_tx_b;
- enum sh_dmae_slave_chan_id dma_slave_rx_b;
+ unsigned int dma_slave_tx_a;
+ unsigned int dma_slave_rx_a;
+ unsigned int dma_slave_tx_b;
+ unsigned int dma_slave_rx_b;
};
#endif /* ASM_SIU_H */