max732x.h 573 B

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