aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2026-02-20 06:24:38 +0000
committerEnji Cooper <ngie@FreeBSD.org>2026-02-20 06:25:00 +0000
commit90edc16166a6fef03d2384247d07d64656f03309 (patch)
treea16fa1df67aa372815b65946f833e294bb5101c5
parent7b862cf8a252d80ab1fb90fa5371fd8462c7c16f (diff)
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
-rw-r--r--sys/dev/asmc/asmc.c4
1 files 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
},