7e982555d8
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ad7192.c | ||
ad7192.h | ||
ad7280a.c | ||
ad7280a.h | ||
ad7606.h | ||
ad7606_core.c | ||
ad7606_par.c | ||
ad7606_ring.c | ||
ad7606_spi.c | ||
ad7780.c | ||
ad7816.c | ||
lpc32xx_adc.c | ||
spear_adc.c |