summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Masney <masneyb@onstation.org>2016-10-28 13:00:20 +0300
committerJonathan Cameron <jic23@kernel.org>2016-11-01 21:50:08 +0300
commitf375a49f710535b0ac2923274e2a33f04e02514d (patch)
tree7ba1dbac256f4433ae89de0b60af245e6546f017 /include
parentb2fa81be96ca315a164ef7bc1d87fbf025fd9954 (diff)
downloadlinux-f375a49f710535b0ac2923274e2a33f04e02514d.tar.xz
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions