of_get_regulator_init_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual entry for of_get_regulator_init_data β€” and yes, this function is literally here to extract regulator_init_data structure info. it's giving β€œget the regulator init data out of the device tree” energy ✨


🌸 SYNOPSIS 🌸

struct regulator_init_data * of_get_regulator_init_data (struct device
       *dev , struct device_node *node , const struct regulator_desc *desc );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device that’s requesting the regulator_init_data, bestie 🫢
  • node β€” the regulator device node, aka the device tree node in question 🌳
  • desc β€” the regulator description, no cap πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so this icon populates a regulator_init_data structure by extracting data from a device tree node. that’s the whole vibe: device tree node goes in, populated regulator_init_data structure comes out. slay ✨


⭐ RETURN ⭐

it returns a pointer to a populated struct regulator_init_data β€” or NULL if memory allocation fails. yep, that’s the one caveat, bestie 😭


πŸ’œ SEE ALSO πŸ’œ


πŸ’… mwah! this page lives in ./drivers/regulator, is dated October 2026, and is all about of_get_regulator_init_data(9) β€” periodt. πŸ’–

πŸ“¦ where this page comes from