max732x.h 534 B

12345678910111213141516171819202122
  1. #ifndef __LINUX_I2C_MAX732X_H
  2. #define __LINUX_I2C_MAX732X_H
  3. /* platform data for the MAX732x 8/16-bit I/O expander driver */
  4. struct max732x_platform_data {
  5. /* number of the first GPIO */
  6. unsigned gpio_base;
  7. /* interrupt base */
  8. int irq_base;
  9. void *context; /* param to setup/teardown */
  10. int (*setup)(struct i2c_client *client,
  11. unsigned gpio, unsigned ngpio,
  12. void *context);
  13. int (*teardown)(struct i2c_client *client,
  14. unsigned gpio, unsigned ngpio,
  15. void *context);
  16. };
  17. #endif /* __LINUX_I2C_MAX732X_H */