mcp23s08.h 554 B

123456789101112131415161718192021222324
  1. /* FIXME driver should be able to handle all four slaves that
  2. * can be hooked up to each chipselect, as well as IRQs...
  3. */
  4. struct mcp23s08_platform_data {
  5. /* four slaves can share one SPI chipselect */
  6. u8 slave;
  7. /* number assigned to the first GPIO */
  8. unsigned base;
  9. /* pins with pullups */
  10. u8 pullups;
  11. void *context; /* param to setup/teardown */
  12. int (*setup)(struct spi_device *spi,
  13. int gpio, unsigned ngpio,
  14. void *context);
  15. int (*teardown)(struct spi_device *spi,
  16. int gpio, unsigned ngpio,
  17. void *context);
  18. };