ARM: ux500: Don't use enums for MSP IDs - for easy DT conversion
authorLee Jones <lee.jones@linaro.org>
Thu, 19 Dec 2013 15:54:58 +0000 (15:54 +0000)
committerMark Brown <broonie@linaro.org>
Tue, 7 Jan 2014 15:36:09 +0000 (15:36 +0000)
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm/mach-ux500/board-mop500-audio.c
include/linux/platform_data/asoc-ux500-msp.h
sound/soc/ux500/ux500_msp_i2s.h

index 154e15f59702c1010af74cce8fed51077c78e111..43d6cb8c381da9d4364afd45ae686dd155e1975d 100644 (file)
@@ -31,7 +31,7 @@ static struct stedma40_chan_cfg msp0_dma_tx = {
 };
 
 struct msp_i2s_platform_data msp0_platform_data = {
-       .id = MSP_I2S_0,
+       .id = 0,
        .msp_i2s_dma_rx = &msp0_dma_rx,
        .msp_i2s_dma_tx = &msp0_dma_tx,
 };
@@ -49,7 +49,7 @@ static struct stedma40_chan_cfg msp1_dma_tx = {
 };
 
 struct msp_i2s_platform_data msp1_platform_data = {
-       .id = MSP_I2S_1,
+       .id = 1,
        .msp_i2s_dma_rx = NULL,
        .msp_i2s_dma_tx = &msp1_dma_tx,
 };
@@ -69,13 +69,13 @@ static struct stedma40_chan_cfg msp2_dma_tx = {
 };
 
 struct msp_i2s_platform_data msp2_platform_data = {
-       .id = MSP_I2S_2,
+       .id = 2,
        .msp_i2s_dma_rx = &msp2_dma_rx,
        .msp_i2s_dma_tx = &msp2_dma_tx,
 };
 
 struct msp_i2s_platform_data msp3_platform_data = {
-       .id             = MSP_I2S_3,
+       .id             = 3,
        .msp_i2s_dma_rx = &msp1_dma_rx,
        .msp_i2s_dma_tx = NULL,
 };
index 9991aea3d577d7dff57481f823b25f521af34903..2f34bb98fe2ab6eb8993febc65dc1db0dd80fe22 100644 (file)
 
 #include <linux/platform_data/dma-ste-dma40.h>
 
-enum msp_i2s_id {
-       MSP_I2S_0 = 0,
-       MSP_I2S_1,
-       MSP_I2S_2,
-       MSP_I2S_3,
-};
-
 /* Platform data structure for a MSP I2S-device */
 struct msp_i2s_platform_data {
-       enum msp_i2s_id id;
+       int id;
        struct stedma40_chan_cfg *msp_i2s_dma_rx;
        struct stedma40_chan_cfg *msp_i2s_dma_tx;
 };
index 258d0bcee0bd540aed67c757742f1a0f698f3a5f..875de0f68b8567dd3ec1d89213fbe849775ec563 100644 (file)
@@ -475,7 +475,7 @@ struct ux500_msp_dma_params {
 };
 
 struct ux500_msp {
-       enum msp_i2s_id id;
+       int id;
        void __iomem *registers;
        struct device *dev;
        struct ux500_msp_dma_params playback_dma_data;
This page took 0.028665 seconds and 5 git commands to generate.