aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/rt5682s.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2023-08-17 16:03:21 +0200
committerMark Brown <broonie@kernel.org>2023-08-17 15:10:13 +0100
commit8793bee716452e5e2f9bf085fbe01f9e3d1e659f (patch)
tree4520ed6faa656f9943e77bbac2d1ed32134bcad7 /sound/soc/codecs/rt5682s.h
parentASoC: rt5682: Convert to use GPIO descriptors (diff)
downloadwireguard-linux-8793bee716452e5e2f9bf085fbe01f9e3d1e659f.tar.xz
wireguard-linux-8793bee716452e5e2f9bf085fbe01f9e3d1e659f.zip
ASoC: rt5682s: Convert to use GPIO descriptors
Convert the RT5682S 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. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230817-descriptors-asoc-rt-v2-5-02fa2ca3e5b0@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/rt5682s.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5682s.h b/sound/soc/codecs/rt5682s.h
index caa7733b430f..1d79d432d0d8 100644
--- a/sound/soc/codecs/rt5682s.h
+++ b/sound/soc/codecs/rt5682s.h
@@ -11,6 +11,7 @@
#include <sound/rt5682s.h>
#include <linux/regulator/consumer.h>
+#include <linux/gpio/consumer.h>
#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/clk-provider.h>
@@ -1446,6 +1447,7 @@ enum {
struct rt5682s_priv {
struct snd_soc_component *component;
struct rt5682s_platform_data pdata;
+ struct gpio_desc *ldo1_en;
struct regmap *regmap;
struct snd_soc_jack *hs_jack;
struct regulator_bulk_data supplies[RT5682S_NUM_SUPPLIES];