staging:iio:hwmon bridge: Use iio_read_channel_processed
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 17 Sep 2012 12:17:00 +0000 (13:17 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 17 Sep 2012 20:49:49 +0000 (21:49 +0100)
commita0e545e0e75006a7de0e9bc5397f6b44c61990b2
tree4330b278e0bd448a565bd6f3246e3505eb327b2d
parent48e44ce0f8810b530fc83a4f5eb67149280d9b82
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>
drivers/staging/iio/iio_hwmon.c