commit | a0e545e0e75006a7de0e9bc5397f6b44c61990b2 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Mon Sep 17 13:17:00 2012 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Mon Sep 17 21:49:49 2012 +0100 |
tree | 4330b278e0bd448a565bd6f3246e3505eb327b2d | |
parent | 48e44ce0f8810b530fc83a4f5eb67149280d9b82 [diff] |
staging:iio:hwmon bridge: Use iio_read_channel_processed Use the iio_read_channel_processed function to read the sample value in the proper unit instead of using iio_read_channel_raw and iio_read_channel_scale and doing the unit conversion manually. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>