Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0475680b authored by Lee Jones's avatar Lee Jones Committed by Mark Brown
Browse files

ARM: ux500: Don't use enums for MSP IDs - for easy DT conversion

parent 6ce4eac1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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,
};
+1 −8
Original line number Diff line number Diff line
@@ -10,16 +10,9 @@

#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;
};
+1 −1
Original line number Diff line number Diff line
@@ -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;