Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 1e46774f authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Jonathan Cameron
Browse files

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: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 21eab786
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment