Page MenuHomeFreeBSD

asmc: Refactor sensor detection and sysctl registration
ClosedPublic

Authored by seuros on Jun 15 2026, 12:45 PM.
Referenced Files
Unknown Object (File)
Sat, Aug 22, 11:33 PM
Unknown Object (File)
Sat, Aug 22, 4:55 PM
Unknown Object (File)
Thu, Aug 20, 10:46 AM
Unknown Object (File)
Wed, Aug 12, 11:44 PM
Unknown Object (File)
Wed, Aug 12, 12:02 AM
Unknown Object (File)
Mon, Aug 10, 11:15 AM
Unknown Object (File)
Sun, Aug 9, 4:16 PM
Unknown Object (File)
Sat, Aug 8, 6:30 AM
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 Not Applicable
Unit
Tests Not Applicable

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).