Commit 35ff1051 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown

ASoC: codecs: max98090: simplify snd_soc_dai_driver

The max98090 has only one DAI, so snd_soc_dai_driver does not have to be
an array.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230208160410.371609-2-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0551ff7c
...@@ -2356,8 +2356,7 @@ static const struct snd_soc_dai_ops max98090_dai_ops = { ...@@ -2356,8 +2356,7 @@ static const struct snd_soc_dai_ops max98090_dai_ops = {
.no_capture_mute = 1, .no_capture_mute = 1,
}; };
static struct snd_soc_dai_driver max98090_dai[] = { static struct snd_soc_dai_driver max98090_dai = {
{
.name = "HiFi", .name = "HiFi",
.playback = { .playback = {
.stream_name = "HiFi Playback", .stream_name = "HiFi Playback",
...@@ -2374,7 +2373,6 @@ static struct snd_soc_dai_driver max98090_dai[] = { ...@@ -2374,7 +2373,6 @@ static struct snd_soc_dai_driver max98090_dai[] = {
.formats = MAX98090_FORMATS, .formats = MAX98090_FORMATS,
}, },
.ops = &max98090_dai_ops, .ops = &max98090_dai_ops,
}
}; };
static int max98090_probe(struct snd_soc_component *component) static int max98090_probe(struct snd_soc_component *component)
...@@ -2594,8 +2592,8 @@ static int max98090_i2c_probe(struct i2c_client *i2c) ...@@ -2594,8 +2592,8 @@ static int max98090_i2c_probe(struct i2c_client *i2c)
} }
ret = devm_snd_soc_register_component(&i2c->dev, ret = devm_snd_soc_register_component(&i2c->dev,
&soc_component_dev_max98090, max98090_dai, &soc_component_dev_max98090,
ARRAY_SIZE(max98090_dai)); &max98090_dai, 1);
err_enable: err_enable:
return ret; return ret;
} }
......
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