dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/include/linux/spi/mcp23s08.h

25 lines
554 B
C

/* FIXME driver should be able to handle all four slaves that
* can be hooked up to each chipselect, as well as IRQs...
*/
struct mcp23s08_platform_data {
/* four slaves can share one SPI chipselect */
u8 slave;
/* number assigned to the first GPIO */
unsigned base;
/* pins with pullups */
u8 pullups;
void *context; /* param to setup/teardown */
int (*setup)(struct spi_device *spi,
int gpio, unsigned ngpio,
void *context);
int (*teardown)(struct spi_device *spi,
int gpio, unsigned ngpio,
void *context);
};