of_get_fixed_voltage_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the fixed_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 πŸ’œ


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