ASoC: dapm: Use ASoC control macros where possible
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 3 Mar 2025 17:14:22 +0000 (17:14 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Mar 2025 18:14:55 +0000 (18:14 +0000)
commitc951b20766f019a263b3547b07627be52fff87b4
tree436b23cbc9d9f0e5987ec696628b1870a9a1fcc7
parent9e6e7e088cb78ce58ea442106b1f29cd7b6ff76e
ASoC: dapm: Use ASoC control macros where possible

Update the DAPM kcontrol creation macros to use the ASoC macros where a
helpful version exists. One minor fixup is required in adau17x1, the
compiler doesn't like the extra level of macro indirection coupled with
the inline struct definition. Make the struct definition explicit.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250303171424.444556-12-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dapm.h
sound/soc/codecs/adau17x1.c