You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
kernel_samsung_sm7125/include/linux/spi/mcp23s08.h

24 lines
554 B

/* 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);
};