2008-07-25 16:46:14 +08:00
|
|
|
#ifndef __LINUX_I2C_MAX732X_H
|
|
|
|
#define __LINUX_I2C_MAX732X_H
|
|
|
|
|
|
|
|
/* platform data for the MAX732x 8/16-bit I/O expander driver */
|
|
|
|
|
|
|
|
struct max732x_platform_data {
|
|
|
|
/* number of the first GPIO */
|
|
|
|
unsigned gpio_base;
|
|
|
|
|
2010-05-27 05:42:16 +08:00
|
|
|
/* interrupt base */
|
|
|
|
int irq_base;
|
|
|
|
|
2008-07-25 16:46:14 +08:00
|
|
|
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);
|
|
|
|
};
|
|
|
|
#endif /* __LINUX_I2C_MAX732X_H */
|