summaryrefslogtreecommitdiffstats
path: root/drivers/iio/proximity
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-04-19 16:35:48 +0200
committerJonathan Cameron <jic23@kernel.org>2017-04-27 08:16:45 +0200
commitc894acc7bf400d039bf740420b22f0b71b7fb504 (patch)
tree5a2e665773ec3f814211a5c3c8f82c273fc7ff92 /drivers/iio/proximity
parenttools/iio: Use include/uapi with __EXPORTED_HEADERS__ (diff)
downloadlinux-c894acc7bf400d039bf740420b22f0b71b7fb504.tar.xz
linux-c894acc7bf400d039bf740420b22f0b71b7fb504.zip
iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value
Ensure that when an invalid value in ret or value is found -EINVAL is returned. A previous commit broke the way the return error is being returned and instead caused the return code in ret to be re-assigned rather than be returned. Fixes: 5d9854eaea776 ("iio: hid-sensor: Store restore poll and hysteresis on S3") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/proximity')
0 files changed, 0 insertions, 0 deletions