devm_fwnode_pwm_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_fwnode_pwm_get(9)

okay bestie, welcome to the Kernel API Manual ✨ β€” today's main character is devm_fwnode_pwm_get(9), and she is literally the friend who handles all the cleanup so you don't have to 🫢


🌸 NAME 🌸

devm_fwnode_pwm_get β€” request a resource managed PWM from firmware node πŸ’–


✨ SYNOPSIS ✨

struct pwm_device * devm_fwnode_pwm_get (struct device *dev , struct
fwnode_handle *fwnode , const char *con_id );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device that's gonna be the PWM consumer πŸ₯° this is who's asking for the PWM
  • fwnode β€” the firmware node we're grabbing the PWM from, iykyk 🌈
  • con_id β€” the consumer name, aka the vibe check label for who this PWM is for πŸ¦‹

πŸ’« DESCRIPTION πŸ’«

so basically it returns the PWM device parsed from the firmware node πŸ”₯ that's the whole thing, ngl.

if u want the full detailed tea on how the parsing actually goes down, go read of_pwm_get and acpi_pwm_get β€” they spill it all πŸ’…


πŸ‘‘ RETURN πŸ‘‘

a pointer to the requested PWM device πŸ’– … OR an ERR_PTR-encoded error code if it fails 😭 fr fr, check for errors, bestie, don't just rawdog that pointer.


🧚 SEE ALSO 🧚


that's the whole page, no cap πŸŽ€ she lives in ./drivers/pwm, dated October 2026, and she ate πŸ’…βœ¨ go forth and devm responsibly bestie πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from