diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2023-12-08 13:09:28 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-12-08 17:31:59 +0300 |
commit | 8563cfe39ba5d00d974df25e310fb61b5b3687e1 (patch) | |
tree | 091309dc5d56266b559d7f224fa7d8aa923291cf /include/sound/wm5100.h | |
parent | 0119b2a24eb592f967a2849b772887c96617ad80 (diff) | |
download | linux-8563cfe39ba5d00d974df25e310fb61b5b3687e1.tar.xz |
ASoC: wm5100: Convert to GPIO descriptors
This converts the WM5100 codec to use GPIO descriptors, a pretty
straight-forward conversion with the following peculiarities:
- The driver is instantiating a GPIO chip named wm5100, and the
headphone polarity detection GPIO is lifted from there. We add
this to the GPIO descriptor table as well, and we can then get
rid of also the base address for the GPIO chip from the
platform data and just use dynamic numbering.
- Fix up the only in-tree user which is the Cragganmore 6410
module.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231208-descriptors-sound-wlf-v1-4-c4dab6f521ec@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/wm5100.h')
-rw-r--r-- | include/sound/wm5100.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/sound/wm5100.h b/include/sound/wm5100.h index b94badf72947..1c48090fdb2c 100644 --- a/include/sound/wm5100.h +++ b/include/sound/wm5100.h @@ -36,11 +36,7 @@ struct wm5100_jack_mode { #define WM5100_GPIO_SET 0x10000 struct wm5100_pdata { - int reset; /** GPIO controlling /RESET, if any */ - int ldo_ena; /** GPIO controlling LODENA, if any */ - int hp_pol; /** GPIO controlling headset polarity, if any */ int irq_flags; - int gpio_base; struct wm5100_jack_mode jack_modes[2]; |