mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
ed9125566b
commit
a8898dced8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue