pca953x.h 651 B

123456789101112131415161718192021222324252627282930
  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. u32 invert;
  11. /* interrupt base */
  12. int irq_base;
  13. void *context; /* param to setup/teardown */
  14. int (*setup)(struct i2c_client *client,
  15. unsigned gpio, unsigned ngpio,
  16. void *context);
  17. int (*teardown)(struct i2c_client *client,
  18. unsigned gpio, unsigned ngpio,
  19. void *context);
  20. const char *const *names;
  21. };
  22. #endif /* _LINUX_PCA953X_H */