Title: [8637] trunk/drivers/staging/iio/adc/ad7816.c: Task[#5993] Forgot to set the gpio direction.
Revision
8637
Author
sonicz
Date
2010-04-13 04:22:00 -0400 (Tue, 13 Apr 2010)

Log Message

Task[#5993] Forgot to set the gpio direction.

Modified Paths

Diff

Modified: trunk/drivers/staging/iio/adc/ad7816.c (8636 => 8637)


--- trunk/drivers/staging/iio/adc/ad7816.c	2010-04-13 04:31:38 UTC (rev 8636)
+++ trunk/drivers/staging/iio/adc/ad7816.c	2010-04-13 08:22:00 UTC (rev 8637)
@@ -401,18 +401,21 @@
 			chip->rdwr_pin);
 		goto error_free_chip;
 	}
+	gpio_direction_input(chip->rdwr_pin);
 	ret = gpio_request(chip->convert_pin, chip->name);
 	if (ret) {
 		dev_err(&spi_dev->dev, "Fail to request convert gpio PIN %d.\n",
 			chip->convert_pin);
 		goto error_free_gpio_rdwr;
 	}
+	gpio_direction_input(chip->convert_pin);
 	ret = gpio_request(chip->busy_pin, chip->name);
 	if (ret) {
 		dev_err(&spi_dev->dev, "Fail to request busy gpio PIN %d.\n",
 			chip->busy_pin);
 		goto error_free_gpio_convert;
 	}
+	gpio_direction_input(busy_pin);
 
 	chip->indio_dev = iio_allocate_device();
 	if (chip->indio_dev == NULL) {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to