git: c8ad757af8c8 - stable/14 - asmc: use symbolic names with the MacPro3,1 model
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 25 Apr 2026 16:37:50 UTC
The branch stable/14 has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=c8ad757af8c87f15ae6e007c2e6bc65140464c15
commit c8ad757af8c87f15ae6e007c2e6bc65140464c15
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-02-20 06:24:38 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-04-25 16:37:08 +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
(cherry picked from commit 90edc16166a6fef03d2384247d07d64656f03309)
---
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 8c7e48dfd121..7f3a661b863b 100644
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -420,9 +420,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
},