From: Fabien Proriol Date: Thu, 1 Jan 2015 12:46:48 +0000 (+0000) Subject: iio: iio: Fix iio_channel_read return if channel havn't info X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~269^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65de7654d39c70c2b942f801cea01590cf7e3458;p=pandora-kernel.git 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: Fabien Proriol Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed