diff options
| author | Alexandre Belloni <[email protected]> | 2013-07-01 17:40:00 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2013-07-03 20:30:52 +0100 |
| commit | f91d1b63a4e096d3023aaaafec9d9d3aff25997f (patch) | |
| tree | 03339141691dfb4a10a99c992f6484eb46772692 /tools/perf/scripts/python/bin/syscall-counts-by-pid-record | |
| parent | 1c297a66654a3295ae87e2b7f3724d214eb2b5ec (diff) | |
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: <[email protected]> # 3.10.x
Signed-off-by: Alexandre Belloni <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-by-pid-record')
0 files changed, 0 insertions, 0 deletions