wm831x_set_bits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ wm831x_set_bits(9) ✨

okay so bestie, welcome to the Kernel API Manual page for wm831x_set_bits(9) β€” yeah it's a section 9 page, that's the kernel API zone, we're with the drivers girlies now πŸ’…


πŸ’– NAME πŸ’–

wm831x_set_bits β€” set the value of a bitfield in a WM831x register 🌸

like literally, you pick a register, you pick which bits (the mask), you hand over a value, and it sets them. no cap.


πŸŽ€ SYNOPSIS πŸŽ€

int wm831x_set_bits (struct wm831x *wm831x , unsigned short reg ,
unsigned short mask , unsigned short val );

that's the whole signature, copied exactly, don't come for me about the spacing 🫢


πŸ‘‘ ARGUMENTS πŸ‘‘

  • wm831x β€” the device you're writing to ✨ like, the actual WM831x chip you've got feelings about.
  • reg β€” the register you're writing to πŸ’– the one address that's getting the attention today.
  • mask β€” mask of bits to set 🎯 this is your little spotlight, it says which bits we're touching.
  • val β€” the value to set, and bestie listen: it's unshifted 😭 so don't go shifting it yourself and then acting surprised, iykyk.
ngl the unshifted note is the whole vibe check of this function β€” it's doing the shifting for you, that's the point. periodt.

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group lives in the kernel file ./drivers/mfd/wm831x-core.c β€” go say hi πŸ’œ


and that's the page!! main character energy from start to finish, no notes 🌈

signing off from ./drivers/mfd, dated October 2026, filed under wm831x_set_bits(9) β€” slay, bye πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from