linux/drivers/staging/iio/adc
Arnd Bergmann 7e982555d8 staging: iio: fix ad7606_spi regression
As pointed out by Geert Uytterhoeven, the patch was incorrect
and breaks the driver, which was fortunately pointed out by
this gcc warning:

drivers/staging/iio/adc/ad7606_spi.c: In function ‘ad7606_spi_read_block’:
drivers/staging/iio/adc/ad7606_spi.c:34: warning: ‘data’ is used uninitialized in this function

The effect of the patch is that the data is copied into
a random memory location (from the uninitialized pointer)
instead of being byteswapped in place.

This adds the initialization for the 'data' variable back
to restore the original behavior.

Cc: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Fixes: 87787e5ef7 ("Staging: iio: Fix sparse endian warning")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-06-11 17:56:53 +01:00
..
Kconfig 2nd round of new IIO device support, features and cleanups for the 4.6 cycle. 2016-02-14 11:10:38 -08:00
Makefile iio: adc: Move mxs-lradc out of staging 2016-02-10 19:29:37 +00:00
ad7192.c First round of IIO new device support, features and cleanups for the 4.7 cycle. 2016-04-04 12:31:05 -07:00
ad7192.h
ad7280a.c staging: iio: convert bare unsigned usage to unsigned int 2016-03-28 09:37:41 +01:00
ad7280a.h staging: iio: convert bare unsigned usage to unsigned int 2016-03-28 09:37:41 +01:00
ad7606.h staging: iio: convert bare unsigned usage to unsigned int 2016-03-28 09:37:41 +01:00
ad7606_core.c staging: iio: ad7606: use iio_device_{claim|release}_direct_mode() 2016-04-10 14:58:52 +01:00
ad7606_par.c staging:iio:ad7606: Consolidate PM ops 2016-02-08 18:30:51 +00:00
ad7606_ring.c
ad7606_spi.c staging: iio: fix ad7606_spi regression 2016-06-11 17:56:53 +01:00
ad7780.c staging: iio: convert bare unsigned usage to unsigned int 2016-03-28 09:37:41 +01:00
ad7816.c staging: iio: adc: Remove unnecessary test from if conditions 2016-02-20 14:43:48 -08:00
lpc32xx_adc.c
spear_adc.c staging: iio: adc: Replace of_iomap() with devm_ioremap_resource() 2016-03-11 22:09:09 -08:00