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

Andy Shevchenko andriy.shevchenko at intel.com
Fri Sep 11 09:10:05 PDT 2026


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





More information about the linux-arm-kernel mailing list