linux/drivers/iio/adc
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
..
ad799x.c iio:adc:ad799x: Allow writing of event config 2014-07-13 21:59:40 +01:00
ad7266.c iio:ad7266: Mark transfer buffer as __be16 2013-12-03 20:22:27 +00:00
ad7291.c 3rd round of IIO new drivers, cleanups and functionality for the 3.17 cycle. 2014-07-13 12:31:47 -07:00
ad7298.c iio:adc:ad7298: Use BIT() and GENMASK() macros 2014-06-14 16:04:24 +01:00
ad7476.c iio:adc:ad7476: Use GENMASK() macro 2014-06-14 16:03:48 +01:00
ad7791.c
ad7793.c
ad7887.c iio:adc:ad7887: Use BIT() and GENMASK() macros 2014-06-14 16:03:19 +01:00
ad7923.c
ad_sigma_delta.c iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
at91_adc.c Merge 3.16-rc2 into staging-next 2014-06-22 12:33:51 -04:00
exynos_adc.c iio: adc: exynos_adc: Control special clock of ADC to support Exynos3250 ADC 2014-07-23 21:58:26 +01:00
Kconfig staging:iio:ad7291: Move out of staging 2014-07-08 21:17:30 +01:00
lp8788_adc.c
Makefile staging:iio:ad7291: Move out of staging 2014-07-08 21:17:30 +01:00
max1027.c iio: add support of the max1027 2014-06-28 09:54:14 +01:00
max1363.c iio:adc:max1363 incorrect resolutions for max11604, max11605, max11610 and max11611. 2014-05-25 12:06:25 +01:00
mcp320x.c
mcp3422.c Add support for Microchip Technology's MCP3426/7/8 ADC 2014-03-16 18:00:34 +00:00
men_z188_adc.c iio: adc: checking for NULL instead of IS_ERR() in probe 2014-06-14 16:16:43 +01:00
nau7802.c
ti_am335x_adc.c iio: ti_am335x_adc: Fix: Use same step id at FIFOs both ends 2014-07-08 21:21:22 +01:00
ti-adc081c.c
twl4030-madc.c twl4030-madc: Request processed values in twl4030_get_madc_conversion 2014-06-02 21:53:27 +01:00
twl6030-gpadc.c First set of new drivers and cleanups for IIO in the 3.15 cycle. 2014-02-11 14:12:12 -08:00
vf610_adc.c iio:adc:vf610 ensure correct handing of interruption of wait for completion 2014-03-02 21:45:28 +00:00
viperboard_adc.c iio: adc: viperboard: Drop platform_set_drvdata call 2014-02-03 19:27:59 +00:00
xilinx-xadc-core.c iio: fix error return code 2014-08-07 10:26:53 +01:00
xilinx-xadc-events.c iio: xilinx-xadc: Remove unused variable 2014-07-03 22:00:40 +01:00
xilinx-xadc.h iio:adc: Add Xilinx XADC driver 2014-03-01 21:04:29 +00:00