linux/drivers
Rasmus Villemoes 24febc99ca iio: addac: ad74413: fix resistance input processing
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: fea251b6a5 (iio: addac: add AD74413R driver)
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20230503095817.452551-1-linux@rasmusvillemoes.dk
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-05-13 17:54:58 +01:00
..
accel
accessibility
acpi ACPI: video: Remove acpi_backlight=video quirk for Lenovo ThinkPad W530 2023-05-04 20:23:41 +02:00
amba
android
ata
atm
auxdisplay
base
bcma
block for-6.4/io_uring-2023-05-07 2023-05-07 10:00:09 -07:00
bluetooth
bus
cdrom
cdx
char
clk A couple more patches that would be good to get into -rc1. 2023-05-07 10:31:45 -07:00
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto This push fixes the following problems: 2023-05-07 10:57:14 -07:00
cxl
dax
dca
devfreq
dio
dma dmaengine updates for v6.4 2023-05-03 11:11:56 -07:00
dma-buf
edac
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio hte: Changes for v6.4-rc1 2023-05-03 11:00:27 -07:00
gpu drm fixes part 2 for 6.4-rc1 2023-05-05 11:49:22 -07:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c i2c: gxp: fix build failure without CONFIG_I2C_SLAVE 2023-05-03 17:27:29 +02:00
i3c
idle
iio iio: addac: ad74413: fix resistance input processing 2023-05-13 17:54:58 +01:00
infiniband
input
interconnect
iommu
ipack
irqchip
isdn Including fixes from netfilter. 2023-05-05 19:12:01 -07:00
leds
macintosh
mailbox - mailbox api: allow direct registration to a channel 2023-05-07 10:17:33 -07:00
mcb
md for-6.4/block-2023-05-06 2023-05-06 08:28:58 -07:00
media
memory
memstick
message
mfd
misc
mmc
most
mtd This pull request contains updates for UBI and UBIFS 2023-05-03 18:58:59 -07:00
mux
net Including fixes from netfilter. 2023-05-05 19:12:01 -07:00
nfc
ntb
nubus
nvdimm
nvme for-6.4/io_uring-2023-05-07 2023-05-07 10:00:09 -07:00
nvmem
of Devicetree fixes for 6.4, part 1: 2023-05-05 13:27:59 -07:00
opp
parisc parisc: Replace regular spinlock with spin_trylock on panic path 2023-05-03 17:43:26 +02:00
parport
pci
pcmcia
peci
perf
phy phy fixes for 6.4 2023-05-05 11:57:29 -07:00
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm pwm: Changes for v6.4-rc1 2023-05-03 11:25:01 -07:00
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi SCSI misc on 20230506 2023-05-06 08:37:28 -07:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal thermal: intel: powerclamp: Fix NULL pointer access issue 2023-05-04 20:30:18 +02:00
thunderbolt
tty
ufs SCSI misc on 20230506 2023-05-06 08:37:28 -07:00
uio
usb
vdpa
vfio
vhost
video
virt
virtio
vlynq
w1
watchdog linux-watchdog 6.4-rc1 tag 2023-05-04 18:33:56 -07:00
xen
zorro
Kconfig
Makefile