mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
ac70f4d80d
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>
16 lines
361 B
C
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
|