Re: [PATCH 1/7] iio: light: tsl2583: return proper error code

2016-10-22 Thread Jonathan Cameron
On 19/10/16 11:32, Brian Masney wrote: > taos_gain_store() and taos_als_calibrate() both have a code path where > -1 was returned. This patch changes the code so that a proper error code > is returned to make the code consistent with the error paths that are > present within those same functions. >

[PATCH 1/7] iio: light: tsl2583: return proper error code

2016-10-19 Thread Brian Masney
taos_gain_store() and taos_als_calibrate() both have a code path where -1 was returned. This patch changes the code so that a proper error code is returned to make the code consistent with the error paths that are present within those same functions. Signed-off-by: Brian Masney --- drivers/stagi