android_kernel_samsung_msm8976/drivers/iio
Alexandre Belloni 79d295ce5b iio: inkern: fix iio_convert_raw_to_processed_unlocked
commit f91d1b63a4e096d3023aaaafec9d9d3aff25997f upstream.

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.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-25 14:07:23 -07:00
..
accel iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
adc iio: exynos_adc: fix wrong structure extration in suspend and resume 2013-05-22 22:15:20 +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:st: added disable function after read info raw data 2013-05-22 22:14:58 +01:00
dac iio: dac: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m 2013-05-22 22:14:58 +01:00
frequency iio: frequency: ad4350: Fix bug / typo in mask 2013-06-04 18:35:26 +01:00
gyro iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
imu iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
light iio:light:vcnl4000 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:37 +00:00
magnetometer iio:magnetometer:ak8975 move driver out of staging 2013-04-02 18:36:47 +01:00
Kconfig staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00
Makefile staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00
buffer_cb.c iio:callback buffer: free the scan_mask 2013-06-04 18:19:30 +01:00
iio_core.h iio: Add OF support 2013-03-16 10:17:59 +00:00
iio_core_trigger.h
industrialio-buffer.c staging:iio: Add support for multiple buffers 2012-11-10 10:17:21 +00: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: tweak language in industrialio-trigger comments 2013-02-06 18:40:05 +00:00
industrialio-triggered-buffer.c
inkern.c iio: inkern: fix iio_convert_raw_to_processed_unlocked 2013-07-25 14:07:23 -07:00
kfifo_buf.c staging:iio: Remove noop call to __iio_update_buffer 2013-01-31 17:56:44 +00:00