ARM: pxa: poodle: use platform data for poodle asoc driver
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Sep 2019 08:58:26 +0000 (10:58 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 7 May 2022 20:55:47 +0000 (22:55 +0200)
commitac70f4d80df414223130b04d9b4435bf56dda654
treea70c956dee97fab30318d61b87b6cd98a115efa1
parent813c2aee51dd7d7d9092251851e33f66719513cc
ARM: pxa: poodle: use platform data for poodle asoc driver

The poodle audio driver shows its age by using a custom
gpio api for the "locomo" support chip.

In a perfect world, this would get converted to use gpiolib
and a gpio lookup table.

As the world is not perfect, just pass all the required data
in a custom platform_data structure. to avoid the globally
visible mach/poodle.h header.

Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-pxa/poodle.c
arch/arm/mach-pxa/poodle.h [moved from arch/arm/mach-pxa/include/mach/poodle.h with 97% similarity]
include/linux/platform_data/asoc-poodle.h [new file with mode: 0644]
sound/soc/pxa/poodle.c