mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 08:26:29 +00:00 
			
		
		
		
	 f3dc3630f6
			
		
	
	
		f3dc3630f6
		
	
	
	
	
		
			
			This second part of an extension to support more pca953x chips renames the C and Kconfig symbols. All affected files were updated by sed, except for a couple of obvious exceptions. It also updates the Kconfig helptext. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
			
				
	
	
		
			19 lines
		
	
	
		
			458 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			458 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* 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);
 | |
| };
 |