aboutsummaryrefslogblamecommitdiffstats
path: root/include/linux/i2c/pca953x.h
blob: d5c5a60c8a0b1a2d513b8c19e060c4b8d1d94bd5 (plain) (tree)
1
2
3
4
5
6
7
8
9





                        

                                                              
                              





                                                


                                 







                                                                     
                                
  

                             
#ifndef _LINUX_PCA953X_H
#define _LINUX_PCA953X_H

#include <linux/types.h>
#include <linux/i2c.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;

	/* interrupt base */
	int		irq_base;

	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;
};

#endif /* _LINUX_PCA953X_H */