STRUCT MT6323_REGS(9)
π 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 theISINK_CKPDN[0..x]registers π (it's aconst u16 *, she's a pointer to the offsets, mwah)num_top_ckpdnβ how manyISINK_CKPDNregisters there are π we love a count, au8count eventop_ckconβ the offset to theISINK_CKCON[0..x]registers β¨ another pointer, anotherconst u16 *, living her best lifenum_top_ckconβ the number ofISINK_CKCONregisters πΈ yes, there are counts for everything, it's giving organizedisink_conβ offset to theISINKx_CON[0..x]registers π¦ careful, this one'sISINKx_CONwith the littlex, not like the others, iykyknum_isink_conβ number ofISINKx_CONregisters πisink_max_regsβ number ofISINK[0..x]registers π (this is au8, and it's the max, so likeβ¦ respect)isink_en_ctrlβ offset to theISINK_EN_CTRLregister π₯ singular, one register, one vibeiwled_en_ctrlβ offset to theIWLED_EN_CTRLregister β 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_ledandmt6323_ledsare 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms