| Eric Miao | bbcd6d5 | 2008-07-25 01:46:14 -0700 | [diff] [blame] | 1 | #ifndef __LINUX_I2C_MAX732X_H | 
|  | 2 | #define __LINUX_I2C_MAX732X_H | 
|  | 3 |  | 
|  | 4 | /* platform data for the MAX732x 8/16-bit I/O expander driver */ | 
|  | 5 |  | 
|  | 6 | struct max732x_platform_data { | 
|  | 7 | /* number of the first GPIO */ | 
|  | 8 | unsigned	gpio_base; | 
|  | 9 |  | 
| Marc Zyngier | a80a0bb | 2010-05-26 14:42:16 -0700 | [diff] [blame] | 10 | /* interrupt base */ | 
|  | 11 | int		irq_base; | 
|  | 12 |  | 
| Eric Miao | bbcd6d5 | 2008-07-25 01:46:14 -0700 | [diff] [blame] | 13 | void		*context;	/* param to setup/teardown */ | 
|  | 14 |  | 
|  | 15 | int		(*setup)(struct i2c_client *client, | 
|  | 16 | unsigned gpio, unsigned ngpio, | 
|  | 17 | void *context); | 
|  | 18 | int		(*teardown)(struct i2c_client *client, | 
|  | 19 | unsigned gpio, unsigned ngpio, | 
|  | 20 | void *context); | 
|  | 21 | }; | 
|  | 22 | #endif /* __LINUX_I2C_MAX732X_H */ |