pca953x.h 474 字节
Newer Older
1 2
/* platform data for the PCA9539 16-bit I/O expander driver */

3
struct pca953x_platform_data {
4 5 6 7 8 9 10 11 12 13 14 15 16 17
	/* 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);
18
	char		**names;
19
};