summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2013-07-01 18:40:00 +0200
committerJonathan Cameron <jic23@kernel.org>2013-07-03 21:30:52 +0200
commitf91d1b63a4e096d3023aaaafec9d9d3aff25997f (patch)
tree03339141691dfb4a10a99c992f6484eb46772692 /init
parentiio: Fix iio_channel_has_info (diff)
downloadlinux-f91d1b63a4e096d3023aaaafec9d9d3aff25997f.tar.xz
linux-f91d1b63a4e096d3023aaaafec9d9d3aff25997f.zip
iio: inkern: fix iio_convert_raw_to_processed_unlocked
When reading IIO_CHAN_INFO_OFFSET, the return value of iio_channel_read() for success will be IIO_VAL*, checking for 0 is not correct. Without this fix the offset applied by iio drivers will be ignored when converting a raw value to one in appropriate base units (e.g mV) in a IIO client drivers that use iio_convert_raw_to_processed including iio-hwmon. Cc: <stable@vger.kernel.org> # 3.10.x Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions