mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
![Linus Walleij](/assets/img/avatar_default.png)
The MAX9768 is pretty straight forward to convert to GPIO descriptors. To name the GPIO properties, I looke at the bindings in maxim,max9759.yaml which names these GPIO "mute" and "shutdown" respectively. No board files using platform data exist in the kernel, new users can use GPIO descriptor tables if desired. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230911-descriptors-asoc-max-v2-1-b9d793fb768e@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
21 lines
544 B
C
21 lines
544 B
C
/*
|
|
* Platform data for MAX9768
|
|
* Copyright (C) 2011, 2012 by Wolfram Sang, Pengutronix e.K.
|
|
* same licence as the driver
|
|
*/
|
|
|
|
#ifndef __SOUND_MAX9768_PDATA_H__
|
|
#define __SOUND_MAX9768_PDATA_H__
|
|
|
|
/**
|
|
* struct max9768_pdata - optional platform specific MAX9768 configuration
|
|
* @flags: configuration flags, e.g. set classic PWM mode (check datasheet
|
|
* regarding "filterless modulation" which is default).
|
|
*/
|
|
struct max9768_pdata {
|
|
unsigned flags;
|
|
#define MAX9768_FLAG_CLASSIC_PWM (1 << 0)
|
|
};
|
|
|
|
#endif /* __SOUND_MAX9768_PDATA_H__*/
|