diff options
author | Song Hongyan <hongyan.song@intel.com> | 2016-11-03 00:45:48 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-11-05 16:25:33 +0000 |
commit | ab54163190f236e30772e6e8b4efc56a319ed0a6 (patch) | |
tree | e367d162de3d6f512ceeca4626dbaa50d370c93a /include/trace | |
parent | 43a07e48af44c153f960e4a204771d5911e10134 (diff) |
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>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions