]> git.baikalelectronics.ru Git - kernel.git/commit
iio: cros_ec_sensors: Fix return value to get raw and calibbias data.
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 24 Mar 2017 17:44:02 +0000 (18:44 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 25 Mar 2017 15:06:14 +0000 (15:06 +0000)
commit60cef01f4044c535a3e11903f2e39b7844207c4e
tree5a35941fdc3e0620d8b6d021f732f3b214a0ee8f
parent97612e80f3d07723cf3df755278568c5ed60ad58
iio: cros_ec_sensors: Fix return value to get raw and calibbias data.

The cros_ec_sensors_read function must return the type of value on all
cases. This was always true except for RAW and CALIBBIAS data which
returned an error or 0. This patch just fixes the mistake I introduced
when submitting the series.

Fixes: commit d108ccc9f2bc (iio: cros_ec_sensors: add ChromeOS EC
Contiguous Sensors driver)

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c