Page MenuHomeFreeBSD

asmc: Refactor sensor detection and sysctl registration
ClosedPublic

Authored by seuros on Jun 15 2026, 12:45 PM.
Referenced Files
F168856651: D57595.id179788.diff
Sun, Aug 30, 11:42 AM
F168756617: D57595.id.diff
Sun, Aug 30, 12:06 AM
F168738504: D57595.id180588.diff
Sat, Aug 29, 9:50 PM
Unknown Object (File)
Sat, Aug 29, 7:31 PM
Unknown Object (File)
Sat, Aug 29, 5:07 PM
Unknown Object (File)
Fri, Aug 28, 11:18 AM
Unknown Object (File)
Thu, Aug 27, 11:44 PM
Unknown Object (File)
Thu, Aug 27, 10:54 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 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).