aboutsummaryrefslogtreecommitdiff
path: root/include/linux/spi/mcp23s08.h
blob: 835ddf47d45caa571e14e410ba4ed003d9ca172a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

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