Title: [9402] trunk/drivers/staging/iio/adc/ad7414.c: staging: iio: ad7414 Remove use of irq_flags
Revision
9402
Author
hennerich
Date
2010-10-25 10:54:18 -0400 (Mon, 25 Oct 2010)

Log Message

staging: iio: ad7414 Remove use of irq_flags

There is a pending patch adding irq_flags to I2C/SPI board info.
It's currently not sure if it get accepted or rejected.
Temporarily use IRQF_TRIGGER_LOW, and make sure the chip IRQ line
polarity is set accordingly.

Modified Paths

Diff

Modified: trunk/drivers/staging/iio/adc/ad7414.c (9401 => 9402)


--- trunk/drivers/staging/iio/adc/ad7414.c	2010-10-25 13:08:03 UTC (rev 9401)
+++ trunk/drivers/staging/iio/adc/ad7414.c	2010-10-25 14:54:18 UTC (rev 9402)
@@ -474,7 +474,7 @@
 		ret = iio_register_interrupt_line(client->irq,
 				chip->indio_dev,
 				0,
-				client->irq_flags,
+				IRQF_TRIGGER_LOW,
 				chip->name);
 		if (ret)
 			goto error_unreg_dev;
@@ -495,12 +495,9 @@
 			goto error_unreg_irq;
 		}
 
-		if (client->irq_flags & IRQF_TRIGGER_HIGH)
-			ret = ad7414_i2c_write(chip, AD7414_CONFIG,
-				config | AD7414_ALERT_POLARITY);
-		else
-			ret = ad7414_i2c_write(chip, AD7414_CONFIG,
-				config & ~AD7414_ALERT_POLARITY);
+		/* set irq polarity low level */
+		ret = ad7414_i2c_write(chip, AD7414_CONFIG,
+			config & ~AD7414_ALERT_POLARITY);
 		if (ret) {
 			ret = -EIO;
 			goto error_unreg_irq;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to