Title: [9409] trunk/drivers/staging/iio/adc/adt7408.c: staging: iio: adt7408 Remove use of irq_flags
- Revision
- 9409
- Author
- hennerich
- Date
- 2010-10-25 10:58:09 -0400 (Mon, 25 Oct 2010)
Log Message
staging: iio: adt7408 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/adt7408.c (9408 => 9409)
--- trunk/drivers/staging/iio/adc/adt7408.c 2010-10-25 14:57:40 UTC (rev 9408)
+++ trunk/drivers/staging/iio/adc/adt7408.c 2010-10-25 14:58:09 UTC (rev 9409)
@@ -907,7 +907,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;
@@ -928,10 +928,8 @@
goto error_unreg_irq;
}
- if (client->irq_flags & IRQF_TRIGGER_HIGH)
- chip->config |= ADT7408_EVENT_POLARITY;
- else
- chip->config &= ~ADT7408_EVENT_POLARITY;
+ /* set irq polarity low level */
+ chip->config &= ~ADT7408_EVENT_POLARITY;
ret = adt7408_i2c_write(chip, ADT7408_CONFIG, chip->config);
if (ret) {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits