diff options
author | Brian Masney <masneyb@onstation.org> | 2016-11-12 13:19:31 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-11-13 13:07:27 +0000 |
commit | a8898dced810013440cb5eaf7a86f8e30d2ab34c (patch) | |
tree | fcd02106f349534dd7dd6450792aea7fc78ec669 /drivers/staging/iio | |
parent | ed9125566b80af9f944fdbc69bb3720f786324cb (diff) | |
download | linux-a8898dced810013440cb5eaf7a86f8e30d2ab34c.tar.gz linux-a8898dced810013440cb5eaf7a86f8e30d2ab34c.tar.bz2 linux-a8898dced810013440cb5eaf7a86f8e30d2ab34c.zip |
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>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/light/tsl2583.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/tsl2583.c b/drivers/staging/iio/light/tsl2583.c index a319ed0a7245..13ea62aa8ed1 100644 --- a/drivers/staging/iio/light/tsl2583.c +++ b/drivers/staging/iio/light/tsl2583.c @@ -348,7 +348,7 @@ static int tsl2583_als_calibrate(struct iio_dev *indio_dev) chip->als_settings.als_gain_trim = (int)gain_trim_val; - return (int)gain_trim_val; + return 0; } static int tsl2583_set_als_time(struct tsl2583_chip *chip) |