Sean Nyekjaer 9c0d6ccd7d 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>
2023-05-13 17:54:57 +01:00
..
2023-02-18 17:06:09 +00:00
2022-07-16 18:50:24 +01:00
2022-12-30 18:05:16 +00:00
2023-03-12 14:56:02 +00:00
2023-03-12 14:56:02 +00:00
2022-09-05 18:08:34 +01:00
2022-07-18 18:29:29 +01:00
2023-03-28 13:30:55 +02:00
2022-08-15 22:29:57 +01:00
2023-02-06 08:35:30 +01:00