ASoC: rt5682: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Aug 2023 14:03:20 +0000 (16:03 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 17 Aug 2023 14:10:13 +0000 (15:10 +0100)
commited11701751d43fb2318c625e65e0507b5234f8a5
tree4770e3209f0231b41b25577c476a3baabc8dc775
parentab2a5d17064436585807f2ece5e6b4b03769a11f
ASoC: rt5682: Convert to use GPIO descriptors

Convert the RT5682 to use GPIO descriptors and drop the
legacy GPIO headers.

We remove the global GPIO number from the platform data,
but it is still possible to create board files using GPIO
descriptor tables, if desired.

Make sure to make sure SDW devices can associate with
an LDO1 EN descriptor too, if they so desire by putting
the lookup into the common code.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230817-descriptors-asoc-rt-v2-4-02fa2ca3e5b0@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/rt5682.h
sound/soc/codecs/rt5682-i2c.c
sound/soc/codecs/rt5682-sdw.c
sound/soc/codecs/rt5682.c
sound/soc/codecs/rt5682.h