mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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 <[email protected]> Acked-by: Robert Jarzmik <[email protected]> Cc: [email protected] Signed-off-by: Arnd Bergmann <[email protected]>
17 lines
361 B
C
17 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
|