linux/drivers/iio/common/hid-sensors
Song Hongyan ab54163190 iio: hid-sensor-attributes: Check sample_frequency/hysteresis write data legitimacy
Neither sample frequency value nor hysteresis value can be set to be a
negative number, check and return "Invalid argument" if they are negative.

If not do this change, sample_frequency will be set into some unknown
value, read hysteresis value after write negative number will return
"Invalid argument".

Signed-off-by: Song Hongyan <hongyan.song@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-11-05 16:25:33 +00:00
..
hid-sensor-attributes.c iio: hid-sensor-attributes: Check sample_frequency/hysteresis write data legitimacy 2016-11-05 16:25:33 +00:00
hid-sensor-trigger.c iio: hid-sensors: avoid unused function warning 2016-08-29 19:54:08 +01:00
hid-sensor-trigger.h
Kconfig
Makefile