mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] iio: adc: ad_sigma_delta: fix disable_one callback
@ 2024-06-21 12:05 Dumitru Ceclan
  2024-06-21 13:26 ` Alexandru Ardelean
  0 siblings, 1 reply; 5+ messages in thread
From: Dumitru Ceclan @ 2024-06-21 12:05 UTC (permalink / raw)
  To: mitrutzceclan
  Cc: jic23, dlechner, dumitru.ceclan, linux-iio, linux-kernel, Dumitru Ceclan

The ADC ad7192 is a sigma delta ADC with a sequencer that does not
require a disable_one callback as all enable channel bits are within
the same register.

Remove the requirement of the disable_one callback for sigma delta ADCs
with a sequencer.

This patch could be squashed with the commit that it fixes from patch
series: Add support for AD411x

Fixes: a25a0aab2187 ("iio: adc: ad_sigma_delta: add disable_one callback")
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com>
---
 drivers/iio/adc/ad_sigma_delta.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/iio/adc/ad_sigma_delta.c b/drivers/iio/adc/ad_sigma_delta.c
index d6b5fca034a0..8c062b0d26e3 100644
--- a/drivers/iio/adc/ad_sigma_delta.c
+++ b/drivers/iio/adc/ad_sigma_delta.c
@@ -672,11 +672,6 @@ int ad_sd_init(struct ad_sigma_delta *sigma_delta, struct iio_dev *indio_dev,
 			dev_err(&spi->dev, "ad_sigma_delta_info lacks disable_all().\n");
 			return -EINVAL;
 		}
-
-		if (!info->disable_one) {
-			dev_err(&spi->dev, "ad_sigma_delta_info lacks disable_one().\n");
-			return -EINVAL;
-		}
 	}
 
 	if (info->irq_line)
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-25 11:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-21 12:05 [PATCH] iio: adc: ad_sigma_delta: fix disable_one callback Dumitru Ceclan
2024-06-21 13:26 ` Alexandru Ardelean
2024-06-23 10:19   ` Jonathan Cameron
2024-06-25  9:44   ` Ceclan, Dumitru
2024-06-25 11:12     ` Alexandru Ardelean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®