pca953x.h 458 B

123456789101112131415161718
  1. /* platform data for the PCA9539 16-bit I/O expander driver */
  2. struct pca953x_platform_data {
  3. /* number of the first GPIO */
  4. unsigned gpio_base;
  5. /* initial polarity inversion setting */
  6. uint16_t invert;
  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. };