pwm_adjust_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🌈

  • 0 on 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:


πŸ’€ 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