staging: iio: tsl2x7x: add range checking to three sysfs attributes
authorBrian Masney <masneyb@onstation.org>
Fri, 4 May 2018 02:53:10 +0000 (22:53 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 May 2018 18:01:14 +0000 (19:01 +0100)
commit2a74090249ed2cf9c1e383c2b450efdce08159ab
treea6bd0220fc1f992b3c9f8c496718fc88f428996d
parent5a1f2de133a8d3ac575910295519572535034ae0
staging: iio: tsl2x7x: add range checking to three sysfs attributes

The sysfs attributes in_illuminance0_target_input,
in_illuminance0_calibrate, and in_proximity0_calibrate did not have
proper range checking in place so this patch adds the correct range
checks.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c