Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230208160410.371609-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
35ff1051 0551ff7c

+3 -5
+3 -5
sound/soc/codecs/max98090.c
··· 2356 2356 .no_capture_mute = 1, 2357 2357 }; 2358 2358 2359 - static struct snd_soc_dai_driver max98090_dai[] = { 2360 - { 2359 + static struct snd_soc_dai_driver max98090_dai = { 2361 2360 .name = "HiFi", 2362 2361 .playback = { 2363 2362 .stream_name = "HiFi Playback", ··· 2373 2374 .formats = MAX98090_FORMATS, 2374 2375 }, 2375 2376 .ops = &max98090_dai_ops, 2376 - } 2377 2377 }; 2378 2378 2379 2379 static int max98090_probe(struct snd_soc_component *component) ··· 2592 2594 } 2593 2595 2594 2596 ret = devm_snd_soc_register_component(&i2c->dev, 2595 - &soc_component_dev_max98090, max98090_dai, 2596 - ARRAY_SIZE(max98090_dai)); 2597 + &soc_component_dev_max98090, 2598 + &max98090_dai, 1); 2597 2599 err_enable: 2598 2600 return ret; 2599 2601 }