aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c/pca953x.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/i2c/pca953x.h')
-rw-r--r--include/linux/i2c/pca953x.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/i2c/pca953x.h b/include/linux/i2c/pca953x.h
new file mode 100644
index 000000000000..611d84ab7a30
--- /dev/null
+++ b/include/linux/i2c/pca953x.h
@@ -0,0 +1,18 @@
1/* platform data for the PCA9539 16-bit I/O expander driver */
2
3struct pca9539_platform_data {
4 /* 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);
18};