pca953x.h 651 字节
Newer Older
O
Olof Johansson 已提交
1 2 3 4 5 6
#ifndef _LINUX_PCA953X_H
#define _LINUX_PCA953X_H

#include <linux/types.h>
#include <linux/i2c.h>

7 8
/* platform data for the PCA9539 16-bit I/O expander driver */

9
struct pca953x_platform_data {
10 11 12 13
	/* number of the first GPIO */
	unsigned	gpio_base;

	/* initial polarity inversion setting */
14
	u32		invert;
15

16 17 18
	/* interrupt base */
	int		irq_base;

19 20 21 22 23 24 25 26
	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);
27
	const char	*const *names;
28
};
O
Olof Johansson 已提交
29 30

#endif /* _LINUX_PCA953X_H */