Re: [PATCH 09/10] staging: iio: tsl2583: add error code to sysfs store functions

2016-10-30 Thread Jonathan Cameron
On 28/10/16 11:00, Brian Masney wrote: > in_illuminance_input_target_store() and in_illuminance_calibrate_store() > validated the data from userspace, however it would not return an > error code to userspace if an invalid value was passed in. This patch > changes these functions so that they

Re: [PATCH 09/10] staging: iio: tsl2583: add error code to sysfs store functions

2016-10-30 Thread Jonathan Cameron
On 28/10/16 11:00, Brian Masney wrote: > in_illuminance_input_target_store() and in_illuminance_calibrate_store() > validated the data from userspace, however it would not return an > error code to userspace if an invalid value was passed in. This patch > changes these functions so that they

[PATCH 09/10] staging: iio: tsl2583: add error code to sysfs store functions

2016-10-28 Thread Brian Masney
in_illuminance_input_target_store() and in_illuminance_calibrate_store() validated the data from userspace, however it would not return an error code to userspace if an invalid value was passed in. This patch changes these functions so that they return -EINVAL if invalid data is passed in.

[PATCH 09/10] staging: iio: tsl2583: add error code to sysfs store functions

2016-10-28 Thread Brian Masney
in_illuminance_input_target_store() and in_illuminance_calibrate_store() validated the data from userspace, however it would not return an error code to userspace if an invalid value was passed in. This patch changes these functions so that they return -EINVAL if invalid data is passed in.