Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 8e4a718ff38d8539938ec3421935904c27e00c39 authored by Linus Torvalds on 04 July 2009, 17:58:48 UTC
Linux 2.6.31-rc2
Tip revision: 8e4a718
pca953x.h
/* platform data for the PCA9539 16-bit I/O expander driver */

struct pca953x_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);
	char		**names;
};
back to top