diff options
| author | Matthias Kaehlcke <[email protected]> | 2018-08-27 14:14:53 -0700 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2018-09-02 18:52:04 +0100 |
| commit | 1e46774fec4b54adbd7cc15f1931e9df98664530 (patch) | |
| tree | da285d24b61eeb631ae9aa96557f0e5def4a0757 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 21eab7861688aa4c69fcb88440cc0c4a422bdcd6 (diff) | |
iio: adc: qcom-spmi-adc5: Verify channel numbers from DT
The driver only defines a subset of all possible ADC channels. Channel
numbers read from the device tree are accepted as long as they don't
exceed a max value, even when no channel definition exists. Add a
check to abort initialization in this case.
Signed-off-by: Matthias Kaehlcke <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions