include: replace linux/module.h with "struct module" wherever possible
[linux-2.6/next.git] / include / linux / i2c / pca953x.h
blob139ba52667c89cf9f02cc1ce16cb53bc81a77f0b
1 #ifndef _LINUX_PCA953X_H
2 #define _LINUX_PCA953X_H
4 #include <linux/types.h>
5 #include <linux/i2c.h>
7 /* platform data for the PCA9539 16-bit I/O expander driver */
9 struct pca953x_platform_data {
10 /* number of the first GPIO */
11 unsigned gpio_base;
13 /* initial polarity inversion setting */
14 uint16_t invert;
16 /* interrupt base */
17 int irq_base;
19 void *context; /* param to setup/teardown */
21 int (*setup)(struct i2c_client *client,
22 unsigned gpio, unsigned ngpio,
23 void *context);
24 int (*teardown)(struct i2c_client *client,
25 unsigned gpio, unsigned ngpio,
26 void *context);
27 const char *const *names;
30 #endif /* _LINUX_PCA953X_H */