/include/linux/i2c/pca953x.h

https://github.com/airy09/android_kernel_sony_apq8064 · C Header · 30 lines · 18 code · 8 blank · 4 comment · 0 complexity · 0857d73297f592db48bedfb67e04b053 MD5 · raw file

  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. /* 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 */