max732x.h 495 B

12345678910111213141516171819
  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. void *context; /* param to setup/teardown */
  8. int (*setup)(struct i2c_client *client,
  9. unsigned gpio, unsigned ngpio,
  10. void *context);
  11. int (*teardown)(struct i2c_client *client,
  12. unsigned gpio, unsigned ngpio,
  13. void *context);
  14. };
  15. #endif /* __LINUX_I2C_MAX732X_H */