Files
linux-apfs/include/linux/platform_data/pca953x.h
T

31 lines
651 B
C
Raw Normal View History

2010-03-05 13:44:34 -08:00
#ifndef _LINUX_PCA953X_H
#define _LINUX_PCA953X_H
#include <linux/types.h>
#include <linux/i2c.h>
2008-02-04 22:28:26 -08:00
/* platform data for the PCA9539 16-bit I/O expander driver */
2008-02-06 01:39:03 -08:00
struct pca953x_platform_data {
2008-02-04 22:28:26 -08:00
/* number of the first GPIO */
unsigned gpio_base;
/* initial polarity inversion setting */
u32 invert;
2008-02-04 22:28:26 -08:00
/* interrupt base */
int irq_base;
2008-02-04 22:28:26 -08:00
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;
2008-02-04 22:28:26 -08:00
};
2010-03-05 13:44:34 -08:00
#endif /* _LINUX_PCA953X_H */