kernel-fxtec-pro1x/drivers/staging/iio
Lars-Peter Clausen a47f6e08ed staging:iio:spear_adc: Fix IRQ check
The test in the spear_adc driver which checks whether the IRQ number returned
by platform_get_irq() has multiple problems. It accepts 0 even though this is
an invalid IRQ. It also rejects IRQ numbers that are larger or equal than
NR_IRQS. First of all drivers should never need to reference NR_IRQS and
secondly with CONFIG_SPARSE_IRQ NR_IRQS is not the upper limit, so the check
might reject valid IRQ numbers. This patch modifies the check to only test
against less or equal to 0.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-10-17 23:14:00 +01:00
..
accel staging:iio:lis3l02dq: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:13:57 +01:00
adc staging:iio:spear_adc: Fix IRQ check 2013-10-17 23:14:00 +01:00
addac Staging: iio: adt7316-i2c: quoted string split across lines 2013-10-06 23:02:13 -07:00
cdc staging:iio:ad7150: Switch to new event config interface 2013-10-12 12:47:41 +01:00
Documentation staging: iio: generic_buffer: initialize ret 2013-10-12 12:19:50 +01:00
frequency staging:iio:ad9951: Use spi_sync_transfer() 2013-10-05 12:01:12 +01:00
gyro iio: gyro: adis16060_core: Use devm_iio_device_alloc 2013-08-17 15:50:56 +01:00
impedance-analyzer staging:iio:ad5933: Remove redundant call to iio_sw_buffer_preenable() 2013-10-16 19:16:15 +01:00
light staging:iio:tsl2x7x: Switch to new event config interface 2013-10-12 12:50:26 +01:00
magnetometer staging:iio:hmc5843: Introduce helper functions to show/check list of int pairs 2013-10-01 16:19:15 +01:00
meter staging:iio:ade7758: Remove redundant call to iio_sw_buffer_preenable() 2013-10-16 19:16:15 +01:00
resolver staging: iio: ad2s90: Use devm_iio_device_alloc 2013-09-14 11:52:01 +01:00
trigger staging:iio:iio-trig-bfin-timer: Fix compile error 2013-09-28 11:46:18 +01:00
iio_dummy_evgen.c
iio_dummy_evgen.h
iio_simple_dummy.c staging:iio:simple_dummy: Switch to new event config interface 2013-10-12 12:48:39 +01:00
iio_simple_dummy.h staging:iio:simple_dummy: Switch to new event config interface 2013-10-12 12:48:39 +01:00
iio_simple_dummy_buffer.c staging:iio:simple-dummy: Remove redundant call to iio_sw_buffer_preenable() 2013-10-16 19:15:40 +01:00
iio_simple_dummy_events.c staging:iio:simple_dummy: Switch to new event config interface 2013-10-12 12:48:39 +01:00
Kconfig staging:iio:dummy fix kfifo_buf kconfig dependency issue if kfifo modular and buffer enabled for built in dummy driver. 2013-09-18 19:43:23 +01:00
Makefile hwmon: Move the IIO client driver for hwmon out of staging 2013-03-23 10:08:15 +00:00
ring_hw.h
TODO Staging/iio: add TODO reminder 2013-10-01 16:19:17 +01:00