git: 90edc16166a6 - main - asmc: use symbolic names with the MacPro3,1 model
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Feb 2026 06:27:16 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=90edc16166a6fef03d2384247d07d64656f03309
commit 90edc16166a6fef03d2384247d07d64656f03309
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-02-20 06:24:38 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-02-20 06:25:00 +0000
asmc: use symbolic names with the MacPro3,1 model
Use `ASMC_LIGHT_FUNCS_DISABLED` and `ASMC_SMS_FUNCS_DISABLED` instead of
the unrolled versions of the macros.
This makes it easier to adjust the underlying macros/fields for
`struct asmc_model`.
No functional change intended.
MFC after: 1 week
---
sys/dev/asmc/asmc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
index ed56561c07ac..880da33ad9f3 100644
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -398,9 +398,9 @@ static const struct asmc_model asmc_models[] = {
/* Idem for the Mac Pro (Early 2008) */
{
"MacPro3,1", "Apple SMC Mac Pro (Early 2008)",
- NULL, NULL, NULL,
+ ASMC_SMS_FUNCS_DISABLED,
ASMC_FAN_FUNCS,
- NULL, NULL, NULL,
+ ASMC_LIGHT_FUNCS_DISABLED,
ASMC_MP31_TEMPS, ASMC_MP31_TEMPNAMES, ASMC_MP31_TEMPDESCS
},