linux/drivers/iio
Dan Carpenter 7d87b3c5c8 iio: tsl4531: fix error handling in tsl4531_check_id()
The tsl4531_check_id() function returned 1 on "found" and 0 on "not
found" and negative error codes on failure.  This was non-standard and
bug prone.  The caller treated all non-zero values including error codes
as "found".

This patch fixes it by changing the tsl4531_check_id() to return zero on
success or a negative error code, and updates the caller.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-08-31 16:29:52 +01:00
..
accel iio: st_sensors: add debugfs register read hook 2015-08-16 10:51:25 +01:00
adc iio: adc: vf610: Add IIO buffer support for Vybrid ADC 2015-08-31 16:19:30 +01:00
amplifiers iio: Export SPI module alias information in missing drivers 2015-08-22 19:07:09 +01:00
buffer iio: Move generic buffer implementations to sub-directory 2015-08-16 10:51:21 +01:00
common iio: st_sensors: add debugfs register read hook 2015-08-16 10:51:25 +01:00
dac iio: dac: ad7303: Add OF match table 2015-08-22 19:05:55 +01:00
frequency iio: Export SPI module alias information in missing drivers 2015-08-22 19:07:09 +01:00
gyro iio: st_sensors: add debugfs register read hook 2015-08-16 10:51:25 +01:00
humidity iio: humidity: si7020: replaced bitmask on humidity values with range check 2015-08-24 19:41:16 +01:00
imu Second set of new device support, features and cleanup for the 4.3 cycle. 2015-08-12 12:43:41 -07:00
light iio: tsl4531: fix error handling in tsl4531_check_id() 2015-08-31 16:29:52 +01:00
magnetometer iio: st_sensors: add debugfs register read hook 2015-08-16 10:51:25 +01:00
orientation iio: orientation: hid-sensor-rotation: Fix memory leak in probe() 2015-05-17 09:10:25 +01:00
pressure iio: st_sensors: add debugfs register read hook 2015-08-16 10:51:25 +01:00
proximity iio: as3935: Add OF match table 2015-08-22 19:01:03 +01:00
temperature iio: mlx90614: Implement filter configuration 2015-08-27 19:37:02 +01:00
trigger iio: trigger: Add a blank line after declarations 2014-12-26 12:15:36 +00:00
iio_core_trigger.h
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
industrialio-buffer.c iio: industrialio-buffer: Fix iio_buffer_poll return value 2015-08-12 19:26:34 +01:00
industrialio-core.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
industrialio-event.c iio: event: Remove negative error code from iio_event_poll 2015-08-12 19:26:39 +01:00
industrialio-trigger.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
industrialio-triggered-event.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
inkern.c First round of IIO new drivers, cleanups and functionality for the 3.20 cycle take 2 2015-01-21 10:13:37 +08:00
Kconfig iio: Support triggered events 2015-08-27 20:47:09 +01:00
Makefile iio: Support triggered events 2015-08-27 20:47:09 +01:00