24febc99ca
On success, ad74413r_get_single_adc_result() returns IIO_VAL_INT aka
1. So currently, the IIO_CHAN_INFO_PROCESSED case is effectively
equivalent to the IIO_CHAN_INFO_RAW case, and we never call
ad74413r_adc_to_resistance_result() to convert the adc measurement to
ohms.
Check ret for being negative rather than non-zero.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ad74115.c | ||
ad74413r.c | ||
stx104.c |