[PATCH 1/3] s3c-gpio-spi-allow-multi-cs.patch

Werner Almesberger werner at openmoko.org
Thu Jan 24 19:25:07 CET 2008


Andy Green wrote:
> - Allow multiple chip selects to really work with S3C bitbang

Thanks, applied in r3946, with small whitespace changes.
You said that you didn't mind these, so I just went ahead and applied
them. Diff below.

- Werner

---------------------------------- cut here -----------------------------------

Index: linux-2.6.24-rc8/drivers/spi/spi_s3c24xx_gpio.c
===================================================================
--- linux-2.6.24-rc8.orig/drivers/spi/spi_s3c24xx_gpio.c
+++ linux-2.6.24-rc8/drivers/spi/spi_s3c24xx_gpio.c
@@ -89,6 +89,7 @@
 static void s3c2410_spigpio_chipselect(struct spi_device *dev, int value)
 {
 	struct s3c2410_spigpio *sg = spidev_to_sg(dev);
+
 	if (sg->info && sg->info->chip_select)
 		(sg->info->chip_select)(sg->info, dev->chip_select, value);
 }
@@ -147,7 +148,8 @@
 	/* register the chips to go with the board */
 
 	for (i = 0; i < sp->info->board_size; i++) {
-		struct spi_device * spidev;
+		struct spi_device *spidev;
+
 		dev_info(&dev->dev, "registering %p: %s\n",
 			 &sp->info->board_info[i],
 			 sp->info->board_info[i].modalias);




More information about the openmoko-kernel mailing list