]> git.ipfire.org Git - people/ms/linux.git/commit
ARM: pxa: z2: use gpio lookup for audio device
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Sep 2019 12:40:58 +0000 (14:40 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 7 May 2022 20:55:48 +0000 (22:55 +0200)
commit83a551c82d9e861238ae6d1958aa4aa6d1cedb6c
tree2f7ed4383d2974ce972b83014277708d97b5898a
parent216459838355b66a7dc617bfb727878dd8631431
ARM: pxa: z2: use gpio lookup for audio device

The audio device is allocated by the audio driver, and it uses a gpio
number from the mach/z2.h header file.

Change it to use a gpio lookup table for the device allocated by the
driver to keep the header file local to the machine.

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