Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75d42798 authored by David Brownell's avatar David Brownell Committed by Linus Torvalds
Browse files

spi: S3C2410: add bus number to SPI GPIO driver



Allow passing a bus number through the platform data for the S3C2410 SPI
GPIO driver.   This is needed to support multiple SPI busses.

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 438ae1ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ static int s3c2410_spigpio_probe(struct platform_device *dev)

	/* setup spi bitbang adaptor */
	sp->bitbang.master = spi_master_get(master);
	sp->bitbang.master->bus_num = info->bus_num;
	sp->bitbang.chipselect = s3c2410_spigpio_chipselect;

	sp->bitbang.txrx_word[SPI_MODE_0] = s3c2410_spigpio_txrx_mode0;
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ struct s3c2410_spigpio_info {
	unsigned long		 pin_mosi;
	unsigned long		 pin_miso;

	int			 bus_num;

	unsigned long		 board_size;
	struct spi_board_info	*board_info;