diff options
author | Sean Nyekjaer <sean@geanix.com> | 2023-05-03 18:20:29 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-05-13 17:54:57 +0100 |
commit | 3e27ef0ced49f8ae7883c25fadf76a2086e99025 (patch) | |
tree | bf853cb2def9bb998d730b0ab45e0c20145dd290 /Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml | |
parent | 9c0d6ccd7d6bbd275e390b55a3390b4274291d95 (diff) | |
download | linux-stable-3e27ef0ced49f8ae7883c25fadf76a2086e99025.tar.gz linux-stable-3e27ef0ced49f8ae7883c25fadf76a2086e99025.tar.bz2 linux-stable-3e27ef0ced49f8ae7883c25fadf76a2086e99025.zip |
iio: adc: stm32-adc: skip adc-channels setup if none is present
If only adc differential channels are defined driver will fail with
stm32-adc: probe of 48003000.adc:adc@0 failed with error -22
Fix this by skipping the initialization if no channels are defined.
This applies only to the legacy way of initializing adc channels.
Fixes: d7705f35448a ("iio: adc: stm32-adc: convert to device properties")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Reviewed-by: Olivier Moysan <olivier.moysan@foss.st.com>
Link: https://lore.kernel.org/r/20230503162029.3654093-2-sean@geanix.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml')
0 files changed, 0 insertions, 0 deletions