[BACK]Return to mcp23s08.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / include / linux / spi

File: [Development] / linux-2.6-xfs / include / linux / spi / mcp23s08.h (download)

Revision 1.1, Tue Feb 26 16:44:40 2008 UTC (9 years, 7 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN

Merge up to 2.6.25-rc3
Merge of 2.6.x-xfs-melb:linux:30555a by kenmcd.

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