of_parse_coupled_regulator(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, we're in the Kernel API Manual and this page is of_parse_coupled_regulator(9) β€” and it's literally here to Get regulator_dev pointer from rdev's property. That's it. That's the assignment. πŸ’…βœ¨

πŸŽ€ SYNOPSIS πŸŽ€

struct regulator_dev * of_parse_coupled_regulator (struct regulator_dev
       *rdev , int index );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • rdev β€” pointer to regulator_dev, whose DTS is used as a source to parse the "regulator-coupled-with" property. yes, the DTS is the source here 🫢
  • index β€” index in the phandles array. that's the index, bestie ✨

πŸ”₯ RETURN πŸ”₯

Pointer to the struct regulator_dev parsed from DTS, or NULL if it has not yet been registered. so if it's not registered yet, you get NULL β€” no cap πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/regulator/of_regulator.c β€” iconic. 🧚


mwah πŸ’‹ this one's from ./drivers/regulator, dated October 2026, and it's still of_parse_coupled_regulator(9) β€” periodt. πŸ¦‹πŸ’–

πŸ“¦ where this page comes from