pwm_adjust_config(9)
β¨ pwm_adjust_config(9) β¨
okay so bestie, welcome to the Kernel API Manual π
this one's called pwm_adjust_config(9) and honestly? she's a little glow-up function and i'm obsessed π
πΈ NAME πΈ
pwm_adjust_config β adjust the current PWM config to the PWM arguments π¦
β¨ SYNOPSIS β¨
int pwm_adjust_config (struct pwm_device *pwm );
π ARGUMENTS π
pwmβ the PWM device. that's the one, bestie π
π§ DESCRIPTION π§
so what does she do? this function will adjust the PWM config to the PWM arguments provided by the DT or PWM lookup table. periodt π
and like, that's particularly useful to adapt the bootloader config to the Linux one β no cap, that's the whole vibe. bootloader says one thing, Linux says another, and pwm_adjust_config is the friend who smooths it all out π«Άβ¨
π RETURN π
0on success π- or a negative error code on failure π
π₯ CONTEXT π₯
May sleep. π΄ yeah she naps, that's just her main character energy β plan accordingly bestie, iykyk.
π SEE ALSO π
Kernel file ./drivers/pwm/core.c plus the whole squad, fr fr:
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_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)devm_fwnode_pwm_get(9)__pwmchip_add(9)pwmchip_remove(9)pwm_add_table(9)pwm_remove_table(9)
π quick reminder bestie: this page lives in ./drivers/pwm and it's dated October 2026 β so yeah, from the future, iconic behavior π
β¨ slay, go read your kernel source, mwah ππ
π¦ 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