1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_PCA953X_H
3 #define _LINUX_PCA953X_H
5 #include <linux/types.h>
8 /* platform data for the PCA9539 16-bit I/O expander driver */
10 struct pca953x_platform_data {
11 /* number of the first GPIO */
14 /* initial polarity inversion setting */
20 void *context; /* param to setup/teardown */
22 int (*setup)(struct i2c_client *client,
23 unsigned gpio, unsigned ngpio,
25 int (*teardown)(struct i2c_client *client,
26 unsigned gpio, unsigned ngpio,
28 const char *const *names;
31 #endif /* _LINUX_PCA953X_H */