ARM: pxa: eseries: use gpio lookup for audio
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Sep 2019 12:25:44 +0000 (14:25 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 7 May 2022 20:55:48 +0000 (22:55 +0200)
commit216459838355b66a7dc617bfb727878dd8631431
tree2e366996c29b630a87951242d9af2b77ccae327f
parent726d8c965bae2d7468445d990849e281dca8cbf7
ARM: pxa: eseries: use gpio lookup for audio

The three eseries machines have very similar drivers for audio, all
using the mach/eseries-gpio.h header for finding the gpio numbers.

Change these to use gpio descriptors to avoid the header file
dependency.

I convert the _OFF gpio numbers into GPIO_ACTIVE_LOW ones for
consistency here.

Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-pxa/eseries.c
sound/soc/pxa/e740_wm9705.c
sound/soc/pxa/e750_wm9705.c
sound/soc/pxa/e800_wm9712.c