aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2016-09-26 18:45:08 -0400
committerMark Brown <broonie@kernel.org>2016-09-27 12:11:31 -0400
commit5919a3898136aae4d2cb4b18b44f70f7b185aa47 (patch)
tree9541e9b1156806cc74cbfed3f5b75355e233db8d /sound/soc/intel/boards
parent43d443dc257c00ef3a3f940b6abfb7537c4fcbe8 (diff)
ASoC: sst-bxt-rt298: fix obsoleted initializers for array
Sparse reports below warnings. bxt_rt298.c:275:9: warning: obsolete array initializer, use C99 syntax bxt_rt298.c:290:9: warning: obsolete array initializer, use C99 syntax bxt_rt298.c:304:9: warning: obsolete array initializer, use C99 syntax bxt_rt298.c:317:9: warning: obsolete array initializer, use C99 syntax bxt_rt298.c:331:9: warning: obsolete array initializer, use C99 syntax bxt_rt298.c:344:9: warning: obsolete array initializer, use C99 syntax bxt_rt298.c:357:9: warning: obsolete array initializer, use C99 syntax There's no need to use obsoleted way. This commit fixes it. Fixes: 76016322ec56 (ASoC: Intel: Add Broxton-P machine driver) Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards')
-rw-r--r--sound/soc/intel/boards/bxt_rt298.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/intel/boards/bxt_rt298.c b/sound/soc/intel/boards/bxt_rt298.c
index 253d7bfbf511..d610bdca1608 100644
--- a/sound/soc/intel/boards/bxt_rt298.c
+++ b/sound/soc/intel/boards/bxt_rt298.c
@@ -271,7 +271,7 @@ static const struct snd_soc_ops broxton_rt286_fe_ops = {
271/* broxton digital audio interface glue - connects codec <--> CPU */ 271/* broxton digital audio interface glue - connects codec <--> CPU */
272static struct snd_soc_dai_link broxton_rt298_dais[] = { 272static struct snd_soc_dai_link broxton_rt298_dais[] = {
273 /* Front End DAI links */ 273 /* Front End DAI links */
274 [BXT_DPCM_AUDIO_PB] 274 [BXT_DPCM_AUDIO_PB] =
275 { 275 {
276 .name = "Bxt Audio Port", 276 .name = "Bxt Audio Port",
277 .stream_name = "Audio", 277 .stream_name = "Audio",
@@ -286,7 +286,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
286 .dpcm_playback = 1, 286 .dpcm_playback = 1,
287 .ops = &broxton_rt286_fe_ops, 287 .ops = &broxton_rt286_fe_ops,
288 }, 288 },
289 [BXT_DPCM_AUDIO_CP] 289 [BXT_DPCM_AUDIO_CP] =
290 { 290 {
291 .name = "Bxt Audio Capture Port", 291 .name = "Bxt Audio Capture Port",
292 .stream_name = "Audio Record", 292 .stream_name = "Audio Record",
@@ -300,7 +300,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
300 .dpcm_capture = 1, 300 .dpcm_capture = 1,
301 .ops = &broxton_rt286_fe_ops, 301 .ops = &broxton_rt286_fe_ops,
302 }, 302 },
303 [BXT_DPCM_AUDIO_REF_CP] 303 [BXT_DPCM_AUDIO_REF_CP] =
304 { 304 {
305 .name = "Bxt Audio Reference cap", 305 .name = "Bxt Audio Reference cap",
306 .stream_name = "refcap", 306 .stream_name = "refcap",
@@ -313,7 +313,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
313 .nonatomic = 1, 313 .nonatomic = 1,
314 .dynamic = 1, 314 .dynamic = 1,
315 }, 315 },
316 [BXT_DPCM_AUDIO_DMIC_CP] 316 [BXT_DPCM_AUDIO_DMIC_CP] =
317 { 317 {
318 .name = "Bxt Audio DMIC cap", 318 .name = "Bxt Audio DMIC cap",
319 .stream_name = "dmiccap", 319 .stream_name = "dmiccap",
@@ -327,7 +327,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
327 .dynamic = 1, 327 .dynamic = 1,
328 .ops = &broxton_dmic_ops, 328 .ops = &broxton_dmic_ops,
329 }, 329 },
330 [BXT_DPCM_AUDIO_HDMI1_PB] 330 [BXT_DPCM_AUDIO_HDMI1_PB] =
331 { 331 {
332 .name = "Bxt HDMI Port1", 332 .name = "Bxt HDMI Port1",
333 .stream_name = "Hdmi1", 333 .stream_name = "Hdmi1",
@@ -340,7 +340,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
340 .nonatomic = 1, 340 .nonatomic = 1,
341 .dynamic = 1, 341 .dynamic = 1,
342 }, 342 },
343 [BXT_DPCM_AUDIO_HDMI2_PB] 343 [BXT_DPCM_AUDIO_HDMI2_PB] =
344 { 344 {
345 .name = "Bxt HDMI Port2", 345 .name = "Bxt HDMI Port2",
346 .stream_name = "Hdmi2", 346 .stream_name = "Hdmi2",
@@ -353,7 +353,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
353 .nonatomic = 1, 353 .nonatomic = 1,
354 .dynamic = 1, 354 .dynamic = 1,
355 }, 355 },
356 [BXT_DPCM_AUDIO_HDMI3_PB] 356 [BXT_DPCM_AUDIO_HDMI3_PB] =
357 { 357 {
358 .name = "Bxt HDMI Port3", 358 .name = "Bxt HDMI Port3",
359 .stream_name = "Hdmi3", 359 .stream_name = "Hdmi3",