devm_fwnode_pwm_get(9)
π 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 PWMfwnodeβ 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 π§
- Kernel file
./drivers/pwm/core.c pwm_round_waveform_might_sleep(9)pwm_get_waveform_might_sleep(9)pwm_set_waveform_might_sleep(9)pwm_apply_might_sleep(9)pwm_apply_atomic(9)pwm_get_state_hw(9)pwm_adjust_config(9)pwm_capture(9)pwm_request_from_chip(9)of_pwm_get(9)acpi_pwm_get(9)pwm_get(9)pwm_put(9)devm_pwm_get(9)__pwmchip_add(9)pwmchip_remove(9)pwm_add_table(9)pwm_remove_table(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms