linux-uconsole/drivers/iio
Adam Thomson b32b30d35e iio: of_iio_channel_get_by_name() returns non-null pointers for error legs
commit a2c12493ed upstream.

Currently in the inkern.c code for IIO framework, the function
of_iio_channel_get_by_name() will return a non-NULL pointer when
it cannot find a channel using of_iio_channel_get() and when it
tries to search for 'io-channel-ranges' property and fails. This
is incorrect behaviour as the function which calls this expects
a NULL pointer for failure. This patch rectifies the issue.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-09 11:14:02 -07:00
..
accel iio:accel:kxsd9 fix missing mutex unlock 2013-12-04 10:57:16 -08:00
adc iio: adc: at91: signedness bug in at91_adc_get_trigger_value_by_name() 2014-06-26 15:12:41 -04:00
amplifiers iio:amplifiers:ad8366 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:30 +00:00
common iio:common:st: added disable function after read info raw data 2013-05-22 22:14:58 +01:00
dac iio: dac: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m 2013-05-22 22:14:58 +01:00
frequency iio: frequency: ad4350: Fix bug / typo in mask 2013-06-04 18:35:26 +01:00
gyro iio:gyro: bug on L3GD20H gyroscope support 2014-03-06 21:30:11 -08:00
imu iio:imu:mpu6050: Fixed segfault in Invensens MPU driver due to null dereference 2014-06-07 13:25:32 -07:00
light iio:light:vcnl4000 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:37 +00:00
magnetometer iio: Fix endianness issue in ak8975_read_axis() 2014-06-26 15:12:41 -04:00
buffer_cb.c iio:callback buffer: free the scan_mask 2013-06-04 18:19:30 +01:00
iio_core.h iio: Add OF support 2013-03-16 10:17:59 +00:00
iio_core_trigger.h
industrialio-buffer.c iio: querying buffer scan_mask should return 0/1 2014-05-06 07:55:29 -07:00
industrialio-core.c iio:core drop info_mask from struct iio_info 2013-03-17 19:49:44 +00:00
industrialio-event.c iio: events: Make iio_push_event() IRQ context save 2013-03-17 20:04:45 +00:00
industrialio-trigger.c iio: tweak language in industrialio-trigger comments 2013-02-06 18:40:05 +00:00
industrialio-triggered-buffer.c iio: Add helper function for initializing triggered buffers 2012-06-18 17:26:09 -07:00
inkern.c iio: of_iio_channel_get_by_name() returns non-null pointers for error legs 2014-07-09 11:14:02 -07:00
Kconfig staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00
kfifo_buf.c staging:iio: Remove noop call to __iio_update_buffer 2013-01-31 17:56:44 +00:00
Makefile staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00