pca953x.h 605 B

123456789101112131415161718192021222324252627
  1. #ifndef _LINUX_PCA953X_H
  2. #define _LINUX_PCA953X_H
  3. #include <linux/types.h>
  4. #include <linux/i2c.h>
  5. /* platform data for the PCA9539 16-bit I/O expander driver */
  6. struct pca953x_platform_data {
  7. /* number of the first GPIO */
  8. unsigned gpio_base;
  9. /* initial polarity inversion setting */
  10. uint16_t invert;
  11. void *context; /* param to setup/teardown */
  12. int (*setup)(struct i2c_client *client,
  13. unsigned gpio, unsigned ngpio,
  14. void *context);
  15. int (*teardown)(struct i2c_client *client,
  16. unsigned gpio, unsigned ngpio,
  17. void *context);
  18. char **names;
  19. };
  20. #endif /* _LINUX_PCA953X_H */