Re: [PATCH v3 1/6] staging:iio:ad2s90: Make read_raw return spi_read's error code

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:43 -0300 Matheus Tavares wrote: > Previously, when spi_read returned an error code inside ad2s90_read_raw, > the code was ignored and IIO_VAL_INT was returned. This patch makes the > function return the error code returned by spi_read when it fails. > > Signed-off-by:

[PATCH v3 1/6] staging:iio:ad2s90: Make read_raw return spi_read's error code

2018-11-03 Thread Matheus Tavares
Previously, when spi_read returned an error code inside ad2s90_read_raw, the code was ignored and IIO_VAL_INT was returned. This patch makes the function return the error code returned by spi_read when it fails. Signed-off-by: Matheus Tavares --- drivers/staging/iio/resolver/ad2s90.c | 7