Commit ef9c76d8 authored by Takashi Sakamoto's avatar Takashi Sakamoto Committed by Greg Kroah-Hartman

ASoC: sst-bxt-rt298: fix obsoleted initializers for array

commit 5919a389 upstream.

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: 76016322 (ASoC: Intel: Add Broxton-P machine driver)
Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent af9f71f5
...@@ -271,7 +271,7 @@ static const struct snd_soc_ops broxton_rt286_fe_ops = { ...@@ -271,7 +271,7 @@ static const struct snd_soc_ops broxton_rt286_fe_ops = {
/* broxton digital audio interface glue - connects codec <--> CPU */ /* broxton digital audio interface glue - connects codec <--> CPU */
static struct snd_soc_dai_link broxton_rt298_dais[] = { static struct snd_soc_dai_link broxton_rt298_dais[] = {
/* Front End DAI links */ /* Front End DAI links */
[BXT_DPCM_AUDIO_PB] [BXT_DPCM_AUDIO_PB] =
{ {
.name = "Bxt Audio Port", .name = "Bxt Audio Port",
.stream_name = "Audio", .stream_name = "Audio",
...@@ -286,7 +286,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = { ...@@ -286,7 +286,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
.dpcm_playback = 1, .dpcm_playback = 1,
.ops = &broxton_rt286_fe_ops, .ops = &broxton_rt286_fe_ops,
}, },
[BXT_DPCM_AUDIO_CP] [BXT_DPCM_AUDIO_CP] =
{ {
.name = "Bxt Audio Capture Port", .name = "Bxt Audio Capture Port",
.stream_name = "Audio Record", .stream_name = "Audio Record",
...@@ -300,7 +300,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = { ...@@ -300,7 +300,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
.dpcm_capture = 1, .dpcm_capture = 1,
.ops = &broxton_rt286_fe_ops, .ops = &broxton_rt286_fe_ops,
}, },
[BXT_DPCM_AUDIO_REF_CP] [BXT_DPCM_AUDIO_REF_CP] =
{ {
.name = "Bxt Audio Reference cap", .name = "Bxt Audio Reference cap",
.stream_name = "refcap", .stream_name = "refcap",
...@@ -313,7 +313,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = { ...@@ -313,7 +313,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
.nonatomic = 1, .nonatomic = 1,
.dynamic = 1, .dynamic = 1,
}, },
[BXT_DPCM_AUDIO_DMIC_CP] [BXT_DPCM_AUDIO_DMIC_CP] =
{ {
.name = "Bxt Audio DMIC cap", .name = "Bxt Audio DMIC cap",
.stream_name = "dmiccap", .stream_name = "dmiccap",
...@@ -327,7 +327,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = { ...@@ -327,7 +327,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
.dynamic = 1, .dynamic = 1,
.ops = &broxton_dmic_ops, .ops = &broxton_dmic_ops,
}, },
[BXT_DPCM_AUDIO_HDMI1_PB] [BXT_DPCM_AUDIO_HDMI1_PB] =
{ {
.name = "Bxt HDMI Port1", .name = "Bxt HDMI Port1",
.stream_name = "Hdmi1", .stream_name = "Hdmi1",
...@@ -340,7 +340,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = { ...@@ -340,7 +340,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
.nonatomic = 1, .nonatomic = 1,
.dynamic = 1, .dynamic = 1,
}, },
[BXT_DPCM_AUDIO_HDMI2_PB] [BXT_DPCM_AUDIO_HDMI2_PB] =
{ {
.name = "Bxt HDMI Port2", .name = "Bxt HDMI Port2",
.stream_name = "Hdmi2", .stream_name = "Hdmi2",
...@@ -353,7 +353,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = { ...@@ -353,7 +353,7 @@ static struct snd_soc_dai_link broxton_rt298_dais[] = {
.nonatomic = 1, .nonatomic = 1,
.dynamic = 1, .dynamic = 1,
}, },
[BXT_DPCM_AUDIO_HDMI3_PB] [BXT_DPCM_AUDIO_HDMI3_PB] =
{ {
.name = "Bxt HDMI Port3", .name = "Bxt HDMI Port3",
.stream_name = "Hdmi3", .stream_name = "Hdmi3",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment