as3645a_set_current(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to as3645a_set_current(9) β€” straight outta the Kernel API Manual, and it's giving "tiny function, big flash-config energy" βœ¨πŸ’…

πŸ’– NAME πŸ’–

as3645a_set_current β€” set flash configuration registers, periodt. that's the whole assignment 😌

✨ SYNOPSIS ✨

int as3645a_set_current (struct as3645a *flash );

πŸŽ€ ARGUMENTS πŸŽ€

  • flash β€” the flash, bestie. literally the struct as3645a * you're handing over 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what this icon actually does: it configures the hardware with the flash, assist, and indicator currents, plus the flash timeout β€” all the important little settings, no cap πŸ”₯

then it returns 0 on success. if an I2C communication error occurred, you get a negative error code instead β€” so keep an eye out for that, fr fr 😭

🌈 SEE ALSO 🌈

  • kernel file ./drivers/leds/flash/leds-as3645a.c
  • as3645a_set_control(9) β€” another one to check out πŸ‘‘

mwah πŸ’‹ that's the page! source/version: ./drivers/leds/flash Β· date: October 2026 β€” go slay your flash config, bestie πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from