Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 65de7654 authored by Fabien Proriol's avatar Fabien Proriol Committed by Jonathan Cameron
Browse files

iio: iio: Fix iio_channel_read return if channel havn't info



When xilinx-xadc is used with hwmon driver to read voltage, offset used
for temperature is always applied whatever the channel.

iio_channel_read must return an error to avoid offset for channel
without IIO_CHAN_INFO_OFFSET property.

Signed-off-by: default avatarFabien Proriol <fabien.proriol@jdsu.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 2eacc608
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment