]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2583: change tsl2583_als_calibrate() to return 0 on success
authorBrian Masney <masneyb@onstation.org>
Sat, 12 Nov 2016 18:19:31 +0000 (13:19 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Nov 2016 13:07:27 +0000 (13:07 +0000)
commita59c66d31c2bd87cc143b27387c60a9ac313e937
treefcd02106f349534dd7dd6450792aea7fc78ec669
parente9ff9531736f8f54080b7445cc95a9a562d69179
staging: iio: tsl2583: change tsl2583_als_calibrate() to return 0 on success

tsl2583_als_calibrate() returns the newly computed gain_trim if the
calibration was successful. This function is only called by
in_illuminance_calibrate_store() and the return value inside that
sysfs attribute is only checked to see if an error was returned.
This patch changes tsl2583_als_calibrate() to return 0 on success.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c