us5182d_update_dark_th(9)
π us5182d_update_dark_th(9) β Kernel API Manual β¨
okay so bestie, welcome to us5182d_update_dark_th(9) β yes, that is the whole manual-name vibe, and we are in the Kernel API Manual. Let's get into it π«Ά
β¨ NAME β¨
us5182d_update_dark_th β update Darh_Th registers πΈ
(and yes, it is spelled Darh_Th right there in the NAME line β we are keeping it exactly as the page says π)
π SYNOPSIS π
int us5182d_update_dark_th (struct us5182d_data *data , int index );
π¦ ARGUMENTS π¦
dataβ theus5182d_datastructure πindexβ index in theus5182d_dark_thsarray to use for the updated value β
π₯ DESCRIPTION π₯
So this function needs to be called with a lock held, fr fr. That is not a lil suggestion, bestie β it is the requirement. π The reason is that it needs two i2c write byte operations, because these registers (0x27 0x28) don't work in word mode accessing. periodt. π
Lock held. Two i2c write byte operations. Registers0x270x28. No word mode accessing. That is the whole assignment. π
π SEE ALSO π
- Kernel file
./drivers/iio/light/us5182d.c us5182d_apply_scale(9)π¦
Bye bestie π«Ά β this cutie lives under ./drivers/iio/light and is dated October 2026. π
π¦ 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