linux-sg2042/drivers/iio
Julia Lawall 889c558095 iio: fix error return code
Convert a zero return value on error to a negative one, as returned
elsewhere in the function.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}

// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-08-07 10:26:53 +01:00
..
accel Fourth round of IIO new drivers, functionality and cleanups for the 3.17 cycle 2014-07-24 14:57:19 -07:00
adc iio: fix error return code 2014-08-07 10:26:53 +01:00
amplifiers iio: amplifiers: ad8366: Remove regulator_put 2013-09-28 11:49:45 +01:00
common iio: st_sensors: add devicetree probing support 2014-07-11 21:09:49 +01:00
dac iio: add support of the max5821 2014-07-27 14:21:35 +01:00
frequency Merge 3.12-rc6 into staging-next. 2013-10-19 13:14:34 -07:00
gyro Merge 3.16-rc5 into staging-next 2014-07-13 15:35:56 -07:00
humidity iio: Add si7005 relative humidity and temperature sensor driver 2014-01-11 11:12:44 +00:00
imu iio: imu: adis16480 switch sampling frequency attr to core support 2014-07-07 10:00:59 +01:00
light Merge 3.16-rc5 into staging-next 2014-07-13 15:35:56 -07:00
magnetometer iio: hid-sensor-magn-3d: Fix build warning 2014-07-27 14:16:29 +01:00
orientation iio: hid-sensors: Inclinometer 3D: Raw read support 2014-05-05 10:59:52 +01:00
pressure Merge 3.16-rc5 into staging-next 2014-07-13 15:35:56 -07:00
proximity iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
temperature iio: Add Melexis mlx90614 contact-less infrared temperature sensor driver 2014-05-03 11:38:13 +01:00
trigger iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
Kconfig iio: always select ANON_INODES 2014-05-10 11:39:57 +01:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00
buffer_cb.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
iio_core.h IIO: core: Introduce read_raw_multi 2014-04-29 22:05:32 +01:00
iio_core_trigger.h iio: fix semicolon in io_core_trigger.h 2013-08-03 18:40:32 +01:00
industrialio-buffer.c iio: buffer: Coalesce adjacent demux table entries 2014-08-01 18:26:29 +01:00
industrialio-core.c iio: types: Added support for rotation from north usage attributes 2014-07-20 13:34:45 +01:00
industrialio-event.c iio: core : events ABI for specifying period 2014-07-11 21:20:59 +01:00
industrialio-trigger.c iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
industrialio-triggered-buffer.c iio:triggered-buffer: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:47 +01:00
inkern.c iio: of_iio_channel_get_by_name() returns non-null pointers for error legs 2014-06-21 12:31:38 +01:00
kfifo_buf.c iio: kfifo_buf: Implement data_available() callback 2013-12-03 20:22:28 +00:00