Title: [9408] trunk/drivers/staging/iio/adc/adt75.c: staging: iio: adt75 Remove use of irq_flags
Revision
9408
Author
hennerich
Date
2010-10-25 10:57:40 -0400 (Mon, 25 Oct 2010)

Log Message

staging: iio: adt75 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/adt75.c (9407 => 9408)


--- trunk/drivers/staging/iio/adc/adt75.c	2010-10-25 14:57:14 UTC (rev 9407)
+++ trunk/drivers/staging/iio/adc/adt75.c	2010-10-25 14:57:40 UTC (rev 9408)
@@ -636,7 +636,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;
@@ -657,10 +657,8 @@
 			goto error_unreg_irq;
 		}
 
-		if (client->irq_flags & IRQF_TRIGGER_HIGH)
-			chip->config |= ADT75_OS_POLARITY;
-		else
-			chip->config &= ~ADT75_OS_POLARITY;
+		/* set irq polarity low level */
+		chip->config &= ~ADT75_OS_POLARITY;
 
 		ret = adt75_i2c_write(chip, ADT75_CONFIG, chip->config);
 		if (ret) {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to