Title: [9404] trunk/drivers/staging/iio/adc/ad7291.c: staging: iio: ad7291 Remove use of irq_flags
Revision
9404
Author
hennerich
Date
2010-10-25 10:55:46 -0400 (Mon, 25 Oct 2010)

Log Message

staging: iio: ad7291 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/ad7291.c (9403 => 9404)


--- trunk/drivers/staging/iio/adc/ad7291.c	2010-10-25 14:55:09 UTC (rev 9403)
+++ trunk/drivers/staging/iio/adc/ad7291.c	2010-10-25 14:55:46 UTC (rev 9404)
@@ -948,7 +948,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;
@@ -963,8 +963,8 @@
 
 		INIT_WORK(&chip->thresh_work, ad7291_interrupt_bh);
 
-		if (client->irq_flags & IRQF_TRIGGER_LOW)
-			chip->command |= AD7291_ALART_POLARITY;
+		/* set irq polarity low level */
+		chip->command |= AD7291_ALART_POLARITY;
 	}
 
 	ret = ad7291_i2c_write(chip, AD7291_COMMAND, chip->command);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to