Re: [PATCH v6 3/4] iio: adc: ad799x: cache regulator voltages during probe

From: Andy Shevchenko

Date: Thu Mar 26 2026 - 15:12:45 EST


On Thu, Mar 26, 2026 at 11:35:28PM +0530, 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.

...

> #include <linux/module.h>
> #include <linux/mutex.h>
> #include <linux/bitops.h>
> +#include <linux/units.h>

Can we have a prerequisite patch that sorts headers?

--
With Best Regards,
Andy Shevchenko