[PATCH v2 10/11] iio: adc: ad7793: drop burnout current support

From: Nuno Sá

Date: Wed Dec 02 2026 - 12:07:42 EST


The burnout current sources are meant for diagnostics, to check that an
external transducer is still operational before taking measurements.
The datasheet asks for them to be turned off during normal operation,
so having them always enabled through the configuration is not a
sensible option.

Drop it ahead of the firmware support. The burnout currents can be
exposed through a proper interface later if there's interest.

Signed-off-by: Nuno Sá <nuno.sa@xxxxxxxxxx>
---
drivers/iio/adc/ad7793.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/iio/adc/ad7793.c b/drivers/iio/adc/ad7793.c
index 79f8614e649e..eeeb12bddd8b 100644
--- a/drivers/iio/adc/ad7793.c
+++ b/drivers/iio/adc/ad7793.c
@@ -217,7 +217,6 @@ enum ad7793_excitation_current {
/**
* struct ad7793_config - AD7793 configuration
* @clock_src: Clock source selection
- * @burnout_current: If set to true the 100nA burnout current is enabled.
* @boost_enable: Enable boost for the bias voltage generator.
* @buffered: If set to true configure the device for buffered input mode.
* @unipolar: If set to true sample in unipolar mode, if set to false sample in
@@ -229,7 +228,6 @@ enum ad7793_excitation_current {
*/
struct ad7793_config {
enum ad7793_clock_source clock_src;
- bool burnout_current;
bool boost_enable;
bool buffered;
bool unipolar;
@@ -403,8 +401,6 @@ static int ad7793_setup(struct iio_dev *indio_dev,
if (cfg->boost_enable &&
(st->chip_info->flags & AD7793_FLAG_HAS_VBIAS))
st->conf |= AD7793_CONF_BOOST;
- if (cfg->burnout_current)
- st->conf |= AD7793_CONF_BO_EN;
if (cfg->unipolar)
st->conf |= AD7793_CONF_UNIPOLAR;


--
2.56.0