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

Log Message

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


--- trunk/drivers/staging/iio/adc/adt7410.c	2010-10-25 14:56:48 UTC (rev 9406)
+++ trunk/drivers/staging/iio/adc/adt7410.c	2010-10-25 14:57:14 UTC (rev 9407)
@@ -787,7 +787,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;
@@ -829,10 +829,8 @@
 			goto error_unreg_int_irq;
 		}
 
-		if (client->irq_flags & IRQF_TRIGGER_HIGH)
-			chip->config |= ADT7410_CT_POLARITY;
-		else
-			chip->config &= ~ADT7410_CT_POLARITY;
+		/* set irq polarity low level */
+		chip->config &= ~ADT7410_CT_POLARITY;
 
 		if (adt7410_platform_data[1] & IRQF_TRIGGER_HIGH)
 			chip->config |= ADT7410_INT_POLARITY;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to