diff options
| author | Song Hongyan <[email protected]> | 2016-11-03 00:45:48 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2016-11-05 16:25:33 +0000 |
| commit | ab54163190f236e30772e6e8b4efc56a319ed0a6 (patch) | |
| tree | e367d162de3d6f512ceeca4626dbaa50d370c93a /tools/perf/scripts/python/bin | |
| 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 <[email protected]>
Acked-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions