STRUCT MT6323_REGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mt6323_regs(9)

okay bestie, pull up a chair πŸŽ€ this is the kernel API manual page for struct mt6323_regs β€” yes, it's a manual page, yes, it's a 9, and yes, it lives in the Kernel API Manual section. come learn register specs with me, it's gonna slay ✨


🌸 NAME 🌸

struct mt6323_regs β€” the register spec for the LED device πŸ’‘ like, it's literally the little map that tells the driver where all the LED registers live. iconic behavior fr fr.


✨ SYNOPSIS ✨

struct mt6323_regs {
    const u16 *top_ckpdn;
    u8 num_top_ckpdn;
    const u16 *top_ckcon;
    u8 num_top_ckcon;
    const u16 *isink_con;
    u8 num_isink_con;
    u8 isink_max_regs;
    u16 isink_en_ctrl;
    u16 iwled_en_ctrl;
 };

that's the whole struct, no cap 🫢 and now let's do the member-by-member vibe check πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • top_ckpdn β€” the offset</c> to the ISINK_CKPDN[0..x] registers πŸŽ€ (it's a const u16 *, she's a pointer to the offsets, mwah)
  • num_top_ckpdn β€” how many ISINK_CKPDN registers there are πŸ’– we love a count, a u8 count even
  • top_ckcon β€” the offset to the ISINK_CKCON[0..x] registers ✨ another pointer, another const u16 *, living her best life
  • num_top_ckcon β€” the number of ISINK_CKCON registers 🌸 yes, there are counts for everything, it's giving organized
  • isink_con β€” offset to the ISINKx_CON[0..x] registers πŸ¦‹ careful, this one's ISINKx_CON with the little x, not like the others, iykyk
  • num_isink_con β€” number of ISINKx_CON registers πŸ’œ
  • isink_max_regs β€” number of ISINK[0..x] registers πŸ‘‘ (this is a u8, and it's the max, so like… respect)
  • isink_en_ctrl β€” offset to the ISINK_EN_CTRL register πŸ”₯ singular, one register, one vibe
  • iwled_en_ctrl β€” offset to the IWLED_EN_CTRL register ⭐ also singular, also iconic
ngl bestie, every single one of these is just an offset or a count. once you clock that, the whole struct is lowkey easy. πŸ’…

πŸ” SEE ALSO πŸ”

  • the kernel file ./drivers/leds/leds-mt6323.c πŸ“ β€” go read the source, it's right there
  • struct mt6323_led(9) 🌈
  • struct mt6323_hwspec(9) 🧚
  • struct mt6323_data(9) πŸ“
  • struct mt6323_leds(9) πŸ’€ (yes, mt6323_led and mt6323_leds are two different things, don't come for me, that's just what the manpage says)

aaaand that's the page, bestie 🫢 this came from the ./drivers/leds corner of the kernel, dated October 2026, and it's the struct mt6323_regs(9) page, periodt πŸ’…βœ¨ go light up some LEDs, ily πŸŽ€

πŸ“¦ where this page comes from