linux/drivers/iio
Alexandre Belloni f91d1b63a4 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>
2013-07-03 20:30:52 +01:00
..
accel iio:common: Removed stuff macros, added num_data_channels on st_sensors struct and added support on one-shot sysfs reads to 3 byte channel 2013-06-05 18:41:23 +01:00
adc iio: at91_adc: Add missing CONFIG_OF macro 2013-06-04 18:29:49 +01:00
amplifiers iio:amplifiers:ad8366 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:30 +00:00
common iio:common: Removed stuff macros, added num_data_channels on st_sensors struct and added support on one-shot sysfs reads to 3 byte channel 2013-06-05 18:41:23 +01:00
dac iio: dac: ad7303: fix error return code in ad7303_probe() 2013-06-29 10:18:21 +01:00
frequency iio: frequency: adf4350: Add support for dt bindings 2013-06-09 19:15:43 +01:00
gyro staging:iio:adis16130: Move out of staging 2013-06-11 20:34:36 +01:00
imu iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
light iio: Correct HID light sensor name in comments 2013-05-22 22:16:49 +01:00
magnetometer iio:common: Removed stuff macros, added num_data_channels on st_sensors struct and added support on one-shot sysfs reads to 3 byte channel 2013-06-05 18:41:23 +01:00
pressure iio:pressure: Add STMicroelectronics pressures driver 2013-06-05 18:41:23 +01:00
trigger iio:trigger:interrupt fix formatting of rsize variable in name 2013-06-08 10:00:58 +01:00
buffer_cb.c iio:callback buffer: free the scan_mask 2013-06-04 18:19:30 +01:00
iio_core_trigger.h
iio_core.h iio: Add OF support 2013-03-16 10:17:59 +00:00
industrialio-buffer.c iio: buffer: cleanup messages in iio_update_buffers() 2013-05-22 22:16:47 +01:00
industrialio-core.c iio:core drop info_mask from struct iio_info 2013-03-17 19:49:44 +00:00
industrialio-event.c iio: events: Make iio_push_event() IRQ context save 2013-03-17 20:04:45 +00:00
industrialio-trigger.c iio:trigger: device_unregister->device_del to avoid double free 2013-06-29 13:26:11 +01:00
industrialio-triggered-buffer.c iio: Add helper function for initializing triggered buffers 2012-06-18 17:26:09 -07:00
inkern.c iio: inkern: fix iio_convert_raw_to_processed_unlocked 2013-07-03 20:30:52 +01:00
Kconfig iio:pressure: Add STMicroelectronics pressures driver 2013-06-05 18:41:23 +01:00
kfifo_buf.c staging:iio: Remove noop call to __iio_update_buffer 2013-01-31 17:56:44 +00:00
Makefile iio:pressure: Add STMicroelectronics pressures driver 2013-06-05 18:41:23 +01:00