]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: ti: Convert TWL4030 to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Sep 2023 13:25:31 +0000 (15:25 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Oct 2023 13:06:20 +0000 (14:06 +0100)
commit1b8a62937e0b23c41956feec778ca7776a01df48
tree5caa968c3897eaedf22462b27fb80ab381224ebc
parent22041ed154aaf89f31306014a305dde516c308ea
ASoC: ti: Convert TWL4030 to use GPIO descriptors

The TWL4030 is actually only ever populated from the device tree,
so we can just pass the right device and headphone jack GPIO name
to snd_soc_jack_add_gpios() and it will pick the right GPIO right
from the device tree.

The platform data patch is unused (no in-tree users of the pdata
method) but these can use GPIO descriptor tables rather than global
GPIO numbers if they need this.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Link: https://lore.kernel.org/r/20230926-descriptors-asoc-ti-v1-3-60cf4f8adbc5@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/platform_data/omap-twl4030.h
sound/soc/ti/omap-twl4030.c