wm831x_set_bits(9)
β¨ 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 π
wm831x_reg_lock(9)πwm831x_reg_unlock(9)πwm831x_reg_read(9)πwm831x_bulk_read(9)πwm831x_reg_write(9)βοΈ
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
- 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