drm_of_get_p..._orientation(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ drm_of_get_panel_orientation(9) β€” the Kernel API Manual, bestie edition πŸ¦‹

okay so this is a page from the Kernel API Manual and it's literally all about drm_of_get_panel_orientation β€” yes the name is a whole mouthful, the header truncates it, iykyk πŸ’…


✨ NAME ✨

drm_of_get_panel_orientation β€” bestie, this is the one that looks up the orientation of the panel through the "rotation" binding from a device tree node πŸŽ€


🌸 SYNOPSIS 🌸

int drm_of_get_panel_orientation (const struct device_node *np , enum
drm_panel_orientation *orientation );

πŸ’– ARGUMENTS πŸ’–

  • np β€” the device tree node of the panel 🌈 like, that's the thing you're inspecting, periodt.
  • orientation β€” the orientation enum that gets filled in 🫢 it's the output, it's giving "here's your answer" energy.

πŸ‘‘ DESCRIPTION πŸ‘‘

So what it does: it looks up the rotation of a panel in the device tree ✨ The orientation of the panel is expressed as a property name "rotation" in the device tree. And the rotation in the device tree is counter clockwise β€” not me stressing this, it's literally in the spec πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

  • 0 β€” when a valid rotation value (0, 90, 180, or 270) is read πŸ’« or when the rotation property just doesn't exist (no cap, that's a success too).
  • a negative error code on failure πŸ’€ so like, if you get a negative number, something went wrong, bestie.

🧚 SEE ALSO 🧚

okay this is the whole friend group, go say hi to all of them πŸŽ€


πŸ’Œ and that's the whole page, bestie β€” this one lives in ./drivers/gpu/drm, dated October 2026. slay, go read some device trees, ily 🫢✨
πŸ“¦ where this page comes from