summaryrefslogtreecommitdiff
path: root/include/linux/i2c/pca9539.h
blob: 611d84ab7a30229a298b55516bb0ba96e1b2b0d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* platform data for the PCA9539 16-bit I/O expander driver */

struct pca9539_platform_data {
	/* number of the first GPIO */
	unsigned	gpio_base;

	/* initial polarity inversion setting */
	uint16_t	invert;

	void		*context;	/* param to setup/teardown */

	int		(*setup)(struct i2c_client *client,
				unsigned gpio, unsigned ngpio,
				void *context);
	int		(*teardown)(struct i2c_client *client,
				unsigned gpio, unsigned ngpio,
				void *context);
};