dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/staging/iio/adc
Lars-Peter Clausen 165d0c52fe staging:iio:lpc32xx_adc: Ensure request_irq and free_irq dev_id parameter match
The data parameters for request_irq and free_irq have to match, otherwise the
IRQ wont be freed.

The issue has been discovered using the following coccinelle patch:

// <smpl>
@r1@
type T;
T data;
@@
(
request_irq(..., (void *)data)
|
request_irq(..., data)
|
request_threaded_irq(..., (void *)data)
|
request_threaded_irq(..., data)
)

@r2@
type r1.T;
T data;
position p;
@@
(
free_irq@p(..., (void *)data)
|
free_irq@p(..., data)
)

@depends on r1@
position p != r2.p;
@@
*free_irq@p(...)

// </smpl>

Cc: Roland Stigge <stigge@antcom.de>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-07-14 09:42:57 +01:00
..
Kconfig staging:iio:adc:ad799x: Use new triggered buffer setup helper function 2012-06-18 17:26:10 -07:00
Makefile staging:iio:adc: Add SPEAr ADC driver 2012-04-13 11:18:23 -07:00
ad799x.h staging:iio:adc:ad799x: Use new triggered buffer setup helper function 2012-06-18 17:26:10 -07:00
ad799x_core.c staging:iio:ad799x: Do not return error code in interrupt handler 2012-07-08 20:02:27 +01:00
ad799x_ring.c staging:iio:ad799x: Do not return error code in interrupt handler 2012-07-08 20:02:27 +01:00
ad7192.c staging:iio:ad7192: Use iio_validate_scan_mask_onehot 2012-07-09 18:18:15 +01:00
ad7192.h IIO: ADC: New driver for AD7190/AD7192/AD7195 4 Channel SPI ADC 2011-08-23 13:40:46 -07:00
ad7280a.c staging:iio:adc: Use dev_to_iio_dev() 2012-05-14 13:39:20 -07:00
ad7280a.h iio: adc: New driver for AD7280A Lithium Ion Battery Monitoring System 2011-08-23 13:35:49 -07:00
ad7291.c staging:iio:adc: Use dev_to_iio_dev() 2012-05-14 13:39:20 -07:00
ad7298.h staging:iio:adc:ad7298: Use new triggered buffer setup helper function 2012-06-18 17:26:09 -07:00
ad7298_core.c staging:iio:adc:ad7298: Use new triggered buffer setup helper function 2012-06-18 17:26:09 -07:00
ad7298_ring.c staging:iio:ad7298: Do not return error code in interrupt handler 2012-07-08 20:02:26 +01:00
ad7476.h staging:iio:adc:ad7476 use iio_sw_buffer_preenable instead of local version. 2012-04-24 11:23:37 -07:00
ad7476_core.c staging:iio:adc:ad7476: Use new triggered buffer setup helper function 2012-06-18 17:26:10 -07:00
ad7476_ring.c staging:iio:ad7476: Do not return error code in interrupt handler 2012-07-08 20:02:28 +01:00
ad7606.h staging:iio:adc:ad7606 remove buffer access to data from sysfs read. 2011-12-08 12:11:11 -08:00
ad7606_core.c staging:iio:adc:ad7606: Use new triggered buffer setup helper function 2012-06-18 17:26:10 -07:00
ad7606_par.c IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00
ad7606_ring.c staging:iio:adc:ad7606: Use new triggered buffer setup helper function 2012-06-18 17:26:10 -07:00
ad7606_spi.c IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00
ad7780.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ad7780.h staging: IIO: ADC: New driver for the AD7780 / AD7781 24-bit Sigma-Delta ADC 2011-04-05 12:04:55 -07:00
ad7793.c staging:iio:ad7793: Use iio_validate_scan_mask_onehot 2012-07-09 18:18:15 +01:00
ad7793.h IIO: ADC: New driver for AD7792/AD7793 3 Channel SPI ADC 2011-06-28 14:47:25 -07:00
ad7816.c staging:iio: Request threaded-only IRQs with IRQF_ONESHOT 2012-07-08 20:02:24 +01:00
ad7887.h staging:iio:adc:ad7887 make use of iio_sw_buffer_preenable. 2012-04-24 11:23:38 -07:00
ad7887_core.c staging:iio:adc:ad7887: Use new triggered buffer setup helper function 2012-06-18 17:26:10 -07:00
ad7887_ring.c staging:iio:ad7887: Do not return error code in interrupt handler 2012-07-08 20:02:28 +01:00
adt7310.c staging:iio:adt7310: Do not return error code in interrupt handler 2012-07-08 20:02:26 +01:00
adt7410.c Mixed back of updates and trivial examples fixes. 2012-07-09 13:39:08 -07:00
lpc32xx_adc.c staging:iio:lpc32xx_adc: Ensure request_irq and free_irq dev_id parameter match 2012-07-14 09:42:57 +01:00
max1363.h staging:iio:adc:max1363 stop reading from buffer for sysfs access 2011-12-08 12:11:12 -08:00
max1363_core.c staging:iio:adc: Use dev_to_iio_dev() 2012-05-14 13:39:20 -07:00
max1363_ring.c staging:iio:max1363: Don't free uninitialized variable 2012-07-12 17:50:26 +01:00
spear_adc.c staging:iio:adc: Use dev_to_iio_dev() 2012-05-14 13:39:20 -07:00