blob: 81736d6a8db7380280a8da7757ca017ed2ce08e4 [file] [log] [blame]
eric miao9e60fdc2008-02-04 22:28:26 -08001/* platform data for the PCA9539 16-bit I/O expander driver */
2
Guennadi Liakhovetskif3dc3632008-02-06 01:39:03 -08003struct pca953x_platform_data {
eric miao9e60fdc2008-02-04 22:28:26 -08004 /* number of the first GPIO */
5 unsigned gpio_base;
6
7 /* initial polarity inversion setting */
8 uint16_t invert;
9
10 void *context; /* param to setup/teardown */
11
12 int (*setup)(struct i2c_client *client,
13 unsigned gpio, unsigned ngpio,
14 void *context);
15 int (*teardown)(struct i2c_client *client,
16 unsigned gpio, unsigned ngpio,
17 void *context);
Daniel Silverstone77906a542009-06-17 16:26:15 -070018 char **names;
eric miao9e60fdc2008-02-04 22:28:26 -080019};