xtensa: fix high memory/reserved memory collision
[cris-mirror.git] / include / linux / platform_data / pca953x.h
blob4eb53e02399786300f8f27f3682504a8696f83a1
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_PCA953X_H
3 #define _LINUX_PCA953X_H
5 #include <linux/types.h>
6 #include <linux/i2c.h>
8 /* platform data for the PCA9539 16-bit I/O expander driver */
10 struct pca953x_platform_data {
11 /* number of the first GPIO */
12 unsigned gpio_base;
14 /* initial polarity inversion setting */
15 u32 invert;
17 /* interrupt base */
18 int irq_base;
20 void *context; /* param to setup/teardown */
22 int (*setup)(struct i2c_client *client,
23 unsigned gpio, unsigned ngpio,
24 void *context);
25 int (*teardown)(struct i2c_client *client,
26 unsigned gpio, unsigned ngpio,
27 void *context);
28 const char *const *names;
31 #endif /* _LINUX_PCA953X_H */