Re: [PATCH v4 3/3] iio: adc: ltc2497: add 2x conversion speed mode
From: Andy Shevchenko
Date: Wed Sep 09 2026 - 11:28:24 EST
On Wed, Sep 09, 2026 at 11:27:52AM +0300, Andrei Stancovici wrote:
> The LTC2499 can convert at twice the output rate by disabling the offset
> auto-calibration. Expose it through sampling_frequency and
> sampling_frequency_available on the voltage channels. The part ignores
> the setting while measuring temperature, so the temperature channel does
> not carry the attribute.
>
> The wait before a result is read is keyed on the conversion currently in
> flight, whose duration is fixed by the mode that was active when it
> started rather than by the mode just selected. Otherwise the first read
> after a 1x -> 2x switch can reprogram the part while a 1x conversion is
> still running, which the part NACKs.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
...
> +LTC2497_DEFINE_CHANNELS(ltc2497core_channel_samp_freq,
> + BIT(IIO_CHAN_INFO_SAMP_FREQ));
I believe having this on a single line is fine.
--
With Best Regards,
Andy Shevchenko