STRUCT CLK_FIXUP_DIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct clk_fixup_div(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual entry for struct clk_fixup_div β€” the imx integer fixup divider clock. yes that's a mouthful, and yes it slays πŸ’…


✨ NAME ✨

struct clk_fixup_div β€” the imx integer fixup divider clock, no cap 🌸


✨ SYNOPSIS ✨

struct clk_fixup_div {
    struct clk_divider divider;
    const struct clk_ops *ops;
    void (*fixup)(u32 *val);
 };

like, that's the whole struct right there πŸ‘‘


✨ Members ✨

  • divider β€” the parent class. it's giving "i inherited this from my ancestors" energy 🧚
  • ops β€” pointer to clk_ops of the parent class πŸ¦‹
  • fixup β€” a hook to fixup the write value. literally the whole point of this struct, iykyk πŸ”₯

✨ Description ✨

so the imx fixup divider clock is a subclass of the basic clk_divider, except it comes with one extra little bonus: an additional fixup hook. that's it, that's the vibe 🫢


✨ SEE ALSO ✨

  • Kernel file ./drivers/clk/imx/clk-fixup-div.c β€” go read it bestie, it's iconic ⭐

ok real talk, the source lives under ./drivers/clk/imx, this whole page is dated October 2026, and it's from the Kernel API Manual. mwah, drink water, and go fix up those dividers πŸ’–πŸŽ€πŸŒˆ
πŸ“¦ where this page comes from