commit | f375a49f710535b0ac2923274e2a33f04e02514d | [log] [tgz] |
---|---|---|
author | Brian Masney <masneyb@onstation.org> | Fri Oct 28 06:00:20 2016 -0400 |
committer | Jonathan Cameron <jic23@kernel.org> | Tue Nov 01 18:50:08 2016 +0000 |
tree | 7ba1dbac256f4433ae89de0b60af245e6546f017 | |
parent | b2fa81be96ca315a164ef7bc1d87fbf025fd9954 [diff] |
staging: iio: tsl2583: add error code to sysfs store functions 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. Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>