David Brownell | e58b9e2 | 2008-02-04 22:28:25 -0800 | [diff] [blame^] | 1 | |
| 2 | /* FIXME driver should be able to handle all four slaves that |
| 3 | * can be hooked up to each chipselect, as well as IRQs... |
| 4 | */ |
| 5 | |
| 6 | struct mcp23s08_platform_data { |
| 7 | /* four slaves can share one SPI chipselect */ |
| 8 | u8 slave; |
| 9 | |
| 10 | /* number assigned to the first GPIO */ |
| 11 | unsigned base; |
| 12 | |
| 13 | /* pins with pullups */ |
| 14 | u8 pullups; |
| 15 | |
| 16 | void *context; /* param to setup/teardown */ |
| 17 | |
| 18 | int (*setup)(struct spi_device *spi, |
| 19 | int gpio, unsigned ngpio, |
| 20 | void *context); |
| 21 | int (*teardown)(struct spi_device *spi, |
| 22 | int gpio, unsigned ngpio, |
| 23 | void *context); |
| 24 | }; |