linux-stable/include/linux/platform_data/asoc-poodle.h
Arnd Bergmann ac70f4d80d 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>
2022-05-07 22:55:47 +02:00

16 lines
361 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_PLATFORM_DATA_POODLE_AUDIO
#define __LINUX_PLATFORM_DATA_POODLE_AUDIO
/* locomo is not a proper gpio driver, and uses its own api */
struct poodle_audio_platform_data {
struct device *locomo_dev;
int gpio_amp_on;
int gpio_mute_l;
int gpio_mute_r;
int gpio_232vcc_on;
int gpio_jk_b;
};
#endif