Home
last modified time | relevance | path

Searched hist:"9 c0d6ccd7d6bbd275e390b55a3390b4274291d95" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/adc/
H A Dstm32-adc.cdiff 9c0d6ccd7d6bbd275e390b55a3390b4274291d95 Wed May 03 18:20:28 CEST 2023 Sean Nyekjaer <sean@geanix.com> iio: adc: stm32-adc: skip adc-diff-channels setup if none is present

If no adc differential channels are defined driver will fail with EINVAL:
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>
Link: https://lore.kernel.org/r/20230503162029.3654093-1-sean@geanix.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>