]> git.baikalelectronics.ru Git - kernel.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)
commitd7c0c7c1a453c17a459f8857bd669899ffe42412
tree2f7ed4383d2974ce972b83014277708d97b5898a
parent9b02c773e50e9ac254404535c9b607e8d5bf3ca9
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