ASoC: rt5665: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Aug 2023 14:03:18 +0000 (16:03 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 17 Aug 2023 14:10:11 +0000 (15:10 +0100)
commit647a3c4c33cd2c3902cdc07c50f3129166d715f5
tree995a751e6419973b8bf7d236701bfe6966f9693a
parenta9b5f21073c0c687068f17e23385ec43fc643b08
ASoC: rt5665: Convert to use GPIO descriptors

The RT5665 driver has some stub support for GPIO descriptors
going back to the initial driver commit, where there are
two GPIO descriptors for the LDO and headphone detection
defined in the device state. Well, let's make use of the
descriptor properly.

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.

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