Re: [PATCH 2/8] iio: adc: stm32-adc: manage characterization voltage diversity

From: Andy Shevchenko

Date: Fri Sep 11 2026 - 12:51:18 EST


On Fri, Sep 11, 2026 at 05:51:24PM +0200, Fabrice Gasnier wrote:

> The characterization voltage used to calibrate vrefint depends
> on SoC family. Add vref_charac field in stm32_adc_cfg structure
> to store the characterization voltage for each SoC, and use it
> in vref computation formula.

Vref

...

> + * @vref_charac: Vref characterization voltage (mv) used to measure vrefint calibration value

vref_char_mV or alike
(use unit suffix and you may drop that mv in the parentheses).

...

> + const int vref_charac;

What does const buy you here?

--
With Best Regards,
Andy Shevchenko