STRUCT CROS_EC_PWM_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct cros_ec_pwm_device(9) πŸ’œ

okay so bestie, welcome to the Kernel API Manual β€” this one's a little struct page and it's literally so cute and tiny. it's all about the driver data for EC PWM ✨ no cap, that's the whole vibe.


🌸 NAME 🌸

struct cros_ec_pwm_device β€” driver data for EC PWM, periodt πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the shape of it, bestie β€” copy it exactly, don't @ me:

struct cros_ec_pwm_device {
    struct cros_ec_device *ec;
    bool use_pwm_type;
 };

πŸ¦‹ Members πŸ¦‹

⭐ ec

Pointer to EC device β€” like, it literally points at the EC device 🫢 that's the whole job.

⭐ use_pwm_type

Use PWM types instead of generic channels ✨ that's the switch, iykyk.


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/pwm/pwm-cros-ec.c β€” go read the source, bestie, it's giving main character energy πŸ‘‘

ngl this page is short but it ate πŸ’€ every member, every flag, every file path β€” all still here, no details lost, fr fr 🌈

and that's the whole thinggg πŸŽ€ brought to you from ./drivers/pwm, dated October 2026, under the title struct cros_ec_pwm_device(9) β€” slay, bye bestie πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from