STRUCT MTK_DRIVE_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the struct mtk_drive_desc(9) page from the Kernel API Manual πŸ¦‹ β€” this is the structure that holds the information of the driving current. literally its whole little job, no cap πŸ’…


✨ SYNOPSIS ✨

       struct mtk_drive_desc {
           u8 min;
           u8 max;
           u8 step;
           u8 scal;
        };

πŸŽ€ Members πŸŽ€

  • min β€” the minimum current of this group πŸ’–
  • max β€” the maximum current of this group πŸ”₯
  • step β€” the step current of this group ✨
  • scal β€” the weight factor βš–οΈ

πŸ’… Description πŸ’…

bestie, the formula is right here and it is literally this:

formula: output = ((input) / step - 1) * scal

that’s the whole vibe. periodt 🫢


πŸ” SEE ALSO πŸ”

  • Kernel file ./drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c β€” go peek, iykyk πŸ‘€βœ¨

mwah πŸ’‹ this cutie came from ./drivers/pinctrl/mediatek, and it’s dated October 2026 β€” struct mtk_drive_desc(9) signing off πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from