Title: [5945] trunk/sound/soc/blackfin/bf5xx-ac97.c: indexes can be macroed away too
Revision
5945
Author
vapier
Date
2009-01-05 18:09:40 -0600 (Mon, 05 Jan 2009)

Log Message

indexes can be macroed away too

Modified Paths


Diff

Modified: trunk/sound/soc/blackfin/bf5xx-ac97.c (5944 => 5945)


--- trunk/sound/soc/blackfin/bf5xx-ac97.c	2009-01-06 00:05:31 UTC (rev 5944)
+++ trunk/sound/soc/blackfin/bf5xx-ac97.c	2009-01-06 00:09:40 UTC (rev 5945)
@@ -35,25 +35,25 @@
 static int sport_num = CONFIG_SND_BF5XX_SPORT_NUM;
 
 #define SPORT_REQ(x) \
-	{P_SPORT##x##_TFS, P_SPORT##x##_DTPRI, P_SPORT##x##_TSCLK, \
-	P_SPORT##x##_RFS, P_SPORT##x##_DRPRI, P_SPORT##x##_RSCLK, 0}
+	[x] = {P_SPORT##x##_TFS, P_SPORT##x##_DTPRI, P_SPORT##x##_TSCLK, \
+	       P_SPORT##x##_RFS, P_SPORT##x##_DRPRI, P_SPORT##x##_RSCLK, 0}
 static u16 sport_req[][7] = {
 #ifdef SPORT0_TCR1
-	[0] = SPORT_REQ(0),
+	SPORT_REQ(0),
 #endif
 #ifdef SPORT1_TCR1
-	[1] = SPORT_REQ(1),
+	SPORT_REQ(1),
 #endif
 #ifdef SPORT2_TCR1
-	[2] = SPORT_REQ(2),
+	SPORT_REQ(2),
 #endif
 #ifdef SPORT3_TCR1
-	[3] = SPORT_REQ(3),
+	SPORT_REQ(3),
 #endif
 };
 
 #define SPORT_PARAMS(x) \
-	{ \
+	[x] = { \
 		.dma_rx_chan = CH_SPORT##x##_RX, \
 		.dma_tx_chan = CH_SPORT##x##_TX, \
 		.err_irq     = IRQ_SPORT##x##_ERROR, \
@@ -61,16 +61,16 @@
 	}
 static struct sport_param sport_params[4] = {
 #ifdef SPORT0_TCR1
-	[0] = SPORT_PARAMS(0),
+	SPORT_PARAMS(0),
 #endif
 #ifdef SPORT1_TCR1
-	[1] = SPORT_PARAMS(1),
+	SPORT_PARAMS(1),
 #endif
 #ifdef SPORT2_TCR1
-	[2] = SPORT_PARAMS(2),
+	SPORT_PARAMS(2),
 #endif
 #ifdef SPORT3_TCR1
-	[3] = SPORT_PARAMS(3),
+	SPORT_PARAMS(3),
 #endif
 };
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to