of_get_fixed_voltage_config(9)
π of_get_fixed_voltage_config(9) π
okay bestie, this is the Kernel API Manual page for of_get_fixed_voltage_config, and itβs giving βextract the config, return a pointerβ energy. letβs get into it π«Ά
β¨ NAME β¨
of_get_fixed_voltage_config β extract fixed_voltage_config structure info. thatβs it, thatβs the job π
πΈ SYNOPSIS πΈ
struct fixed_voltage_config * of_get_fixed_voltage_config (struct device
*dev , const struct regulator_desc *desc );
π ARGUMENTS π
devβ the device requesting thefixed_voltage_config, literally the one asking for it.descβ the regulator description.
π¦ DESCRIPTION π¦
so this function populates the fixed_voltage_config structure by extracting data from a device tree node. thatβs the whole plot: config gets filled in from the device tree node, and honestly? iconic β¨
β RETURN β
it returns a pointer to a populated struct fixed_voltage_config β or NULL if memory allocation fails π. so if memory allocation fails, you get NULL instead of a config pointer. noted, bestie.
π SEE ALSO π
- Kernel file
./drivers/regulator/fixed.c reg_fixed_get_irqs(9)
okay thatβs the tea π«Ά source/version: ./drivers/regulator; date: October 2026; page: of_get_fixed_voltage_config(9). byeee π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms