Page MenuHomeFreeBSD

asmc: Refactor sensor detection and sysctl registration
ClosedPublic

Authored by seuros on Jun 15 2026, 12:45 PM.
Referenced Files
F169409543: D57595.id179788.diff
Tue, Sep 1, 11:28 AM
F169234549: D57595.id.diff
Tue, Sep 1, 12:05 AM
F169214779: D57595.id180588.diff
Mon, Aug 31, 9:28 PM
F169172119: D57595.diff
Mon, Aug 31, 4:46 PM
Unknown Object (File)
Sun, Aug 30, 11:42 AM
Unknown Object (File)
Sun, Aug 30, 12:06 AM
Unknown Object (File)
Sat, Aug 29, 9:50 PM
Unknown Object (File)
Sat, Aug 29, 7:31 PM
Subscribers

Details

Summary

Replace repeated per-sensor-type blocks for voltage, current, power,
and ambient light sensors with table-driven loops.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73879
Build 70762: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jun 23 2026, 11:05 PM
ngie added inline comments.
sys/dev/asmc/asmc.c
1735–1742

These are common units that can be abbreviated.
(not clang-format'ed).