STRUCT VOLTAGE_DEVICE(9)
๐ struct voltage_device(9) ๐
okay so bestie, welcome to the voltage_device era โจ this is a Kernel API Manual page, and it's literally all about VM single input parameters. yes ma'am, that's the whole vibe ๐
๐ธ SYNOPSIS ๐ธ
struct voltage_device {
u32 vm_map;
u32 ch_map;
u32 pre_scaler;
};
๐ Members ๐
vm_mapโ maps a channel number to a VM index. that's it, that's the job ๐ch_mapโ maps a channel number to a channel index. lowkey essential fr fr ๐pre_scalerโ the pre scaler value (it's1or2), used to normalize the voltage output result. highkey important for the math ๐งฎโจ
๐ฆ Description ๐ฆ
so the structure provides the mapping between channel-number (0..N-1) and VM-index (0..num_vm-1) plus channel-index (0..ch_num-1), where N = num_vm * ch_num โ the way that little equation ties it all together is iconic ngl ๐ฅ
it also provides the normalization factor for the VM equation. slay, math queen ๐๐
๐ SEE ALSO ๐
- Kernel file
./drivers/hwmon/mr75203.c struct voltage_channels(9)
๐ซถ quick reminder bestie: keep those member names exactly as written, no cap โ they're u32 and they're not gonna spell themselves ๐
anywayyy, that's the whole read ๐ run it, love it, cite it in your patch notes ๐ this page lives in ./drivers/hwmon, dated October 2026, and it's signing off with a little kiss from the kernel-source vibe check ๐โจ๐ฆ bye bestie ๐
๐ฆ 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