On 12/11/16 18:19, Brian Masney wrote: > 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 <[email protected]> Applied. > --- > drivers/staging/iio/light/tsl2583.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/iio/light/tsl2583.c > b/drivers/staging/iio/light/tsl2583.c > index bcdf095..fc58074 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) >
- [PATCH v4 00/26] staging: iio: tsl2583: move out of stagi... Brian Masney
- [PATCH v4 23/26] staging: iio: tsl2583: remove unnec... Brian Masney
- [PATCH v4 26/26] staging: iio: tsl2583: move out of ... Brian Masney
- [PATCH v4 24/26] staging: iio: tsl2583: remove unnec... Brian Masney
- [PATCH v4 21/26] staging: iio: tsl2583: clarified co... Brian Masney
- [PATCH v4 25/26] staging: iio: tsl2583: add copyrigh... Brian Masney
- [PATCH v4 22/26] staging: iio: tsl2583: remove comme... Brian Masney
- [PATCH v4 20/26] staging: iio: tsl2583: add tsl2583 ... Brian Masney
- [PATCH v4 16/26] staging: iio: tsl2583: change tsl25... Brian Masney
- Re: [PATCH v4 16/26] staging: iio: tsl2583: chan... Jonathan Cameron
- [PATCH v4 19/26] staging: iio: tsl2583: move from a ... Brian Masney
- Re: [PATCH v4 19/26] staging: iio: tsl2583: move... Jonathan Cameron
- [PATCH v4 15/26] staging: iio: tsl2583: moved code b... Brian Masney
- Re: [PATCH v4 15/26] staging: iio: tsl2583: move... Jonathan Cameron
- [PATCH v4 13/26] staging: iio: tsl2583: fix multilin... Brian Masney
- Re: [PATCH v4 13/26] staging: iio: tsl2583: fix ... Jonathan Cameron
- [PATCH v4 02/26] staging: iio: tsl2583: remove unnec... Brian Masney
- Re: [PATCH v4 02/26] staging: iio: tsl2583: remo... Jonathan Cameron
- [PATCH v4 18/26] staging: iio: tsl2583: don't assume... Brian Masney
- Re: [PATCH v4 18/26] staging: iio: tsl2583: don'... Jonathan Cameron

