diff options
| author | 2016-11-03 00:45:48 +0000 | |
|---|---|---|
| committer | 2016-11-05 16:25:33 +0000 | |
| commit | ab54163190f236e30772e6e8b4efc56a319ed0a6 (patch) | |
| tree | e367d162de3d6f512ceeca4626dbaa50d370c93a /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | staging: iio: ad9832: clean-up regulator 'reg' (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 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
