aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2013-08-29 15:24:14 -0400
committerOlof Johansson <olof@lixom.net>2013-08-29 15:33:52 -0400
commit5877457a96e5f89567d2eea092ec28db5d55fc06 (patch)
tree18af3e61586a794a10f884de8989035876340c81 /include/linux/platform_data
parent8a75f0a07c7aa1e4454c077042ab2b56b72299b9 (diff)
gpio: (gpio-pca953x) move header to linux/platform_data/
This patch moves the pca953x.h header from include/linux/i2c to include/linux/platform_data and updates existing support accordingly. Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/pca953x.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/platform_data/pca953x.h b/include/linux/platform_data/pca953x.h
new file mode 100644
index 000000000000..3c98dd4f901f
--- /dev/null
+++ b/include/linux/platform_data/pca953x.h
@@ -0,0 +1,30 @@
1#ifndef _LINUX_PCA953X_H
2#define _LINUX_PCA953X_H
3
4#include <linux/types.h>
5#include <linux/i2c.h>
6
7/* platform data for the PCA9539 16-bit I/O expander driver */
8
9struct pca953x_platform_data {
10 /* number of the first GPIO */
11 unsigned gpio_base;
12
13 /* initial polarity inversion setting */
14 u32 invert;
15
16 /* interrupt base */
17 int irq_base;
18
19 void *context; /* param to setup/teardown */
20
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;
28};
29
30#endif /* _LINUX_PCA953X_H */