diff options
| author | Lars-Peter Clausen <[email protected]> | 2013-07-17 15:44:00 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2013-08-03 18:41:22 +0100 |
| commit | e4ddf314e22a512a494813636b2284d570fd7438 (patch) | |
| tree | 762d1dfb263fdf70d25c3fe03c596441c8c1290d /include/linux/stackprotector.h | |
| parent | 2a34013509065792f069c586c528480ad6196923 (diff) | |
staging:iio:adis16260: Add proper range checks to write_frequency()
A negative sampling frequency is obviously invalid, so use kstrtouint() instead
of strict_strtoul. Also when setting a sampling frequency smaller than the
minimum supported frequency set the frequency to the minimum supported frequency
instead of just cutting off the upper bits of the raw register value.
Signed-off-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions