mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 14:05:46 +07:00
62154991a8
gpiolib doesn't need to modify the names and I assume most initializers use string constants that shouldn't be modified anyhow. [akpm@linux-foundation.org: fix drivers/gpio/cs5535-gpio.c] Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Kevin Wells <kevin.wells@nxp.com> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
31 lines
655 B
C
31 lines
655 B
C
#ifndef _LINUX_PCA953X_H
|
|
#define _LINUX_PCA953X_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/i2c.h>
|
|
|
|
/* platform data for the PCA9539 16-bit I/O expander driver */
|
|
|
|
struct pca953x_platform_data {
|
|
/* number of the first GPIO */
|
|
unsigned gpio_base;
|
|
|
|
/* initial polarity inversion setting */
|
|
uint16_t invert;
|
|
|
|
/* interrupt base */
|
|
int irq_base;
|
|
|
|
void *context; /* param to setup/teardown */
|
|
|
|
int (*setup)(struct i2c_client *client,
|
|
unsigned gpio, unsigned ngpio,
|
|
void *context);
|
|
int (*teardown)(struct i2c_client *client,
|
|
unsigned gpio, unsigned ngpio,
|
|
void *context);
|
|
const char *const *names;
|
|
};
|
|
|
|
#endif /* _LINUX_PCA953X_H */
|