Re: [PATCH v7 4/5] iio: adc: ad799x: cache regulator voltages during probe

From: David Lechner

Date: Sat Apr 04 2026 - 12:05:16 EST


On 4/3/26 3:06 AM, Archit Anant wrote:
> Since the reference voltage for this ADC is not expected to
> change at runtime, determine the active reference voltage (either VREF
> or VCC) during probe() and cache it in a single variable in the state
> structure.
>


> This improves the performance of ad799x_read_raw() and removes the
> dependency on the regulator pointers during fast-path reads.

To make this claim, it should be backed up by performance measurements.
I would drop it since I don't think it would actually make a measurable
difference and it is not in a hot path anyway.