diff options
| author | Lars-Peter Clausen <[email protected]> | 2013-01-16 12:48:00 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2013-01-26 10:07:46 +0000 |
| commit | 06220b89f2284f910f925676d757fd3331138dc6 (patch) | |
| tree | 685002999cda586edf7a844da7c73f0eeef5289d /tools/perf/scripts/python/bin | |
| parent | 3f6a0bad61e34c648fd08ff8dcbfdd58148963d2 (diff) | |
staging:iio:adis16400: Don't pass 0 to ilog2
ilog2 is not defined for 0, so we need to handle the case where the requested
frequency is larger than the base sampling rate. In this case we'll round down
and set the sampling rate to the base sampling rate.
Signed-off-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions