aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorSean Nyekjaer <[email protected]>2023-05-03 18:20:29 +0200
committerJonathan Cameron <[email protected]>2023-05-13 17:54:57 +0100
commit3e27ef0ced49f8ae7883c25fadf76a2086e99025 (patch)
treebf853cb2def9bb998d730b0ab45e0c20145dd290 /lib/mpi/mpiutil.c
parent9c0d6ccd7d6bbd275e390b55a3390b4274291d95 (diff)
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 <[email protected]> Reviewed-by: Olivier Moysan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions