From 7e0c7e228cd782040323eb0a740f4aaa013d43ab Mon Sep 17 00:00:00 2001 From: Aditya Garg Date: Sun, 18 Oct 2026 13:49:58 +0530 Subject: [PATCH] fix --- drivers/hwmon/macsmc-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/macsmc-hwmon.c b/drivers/hwmon/macsmc-hwmon.c index c715b0e81..6ce4eaa08 100644 --- a/drivers/hwmon/macsmc-hwmon.c +++ b/drivers/hwmon/macsmc-hwmon.c @@ -727,7 +727,7 @@ static umode_t macsmc_hwmon_fan_is_visible(const struct macsmc_hwmon_fan *fan, u32 attr, bool has_old_manual) { if (fan->attrs & BIT(attr)) { - if (attr == hwmon_fan_target && fan_control && + if (attr == hwmon_fan_target && (fan->mode.macsmc_key || has_old_manual)) return 0644; -- 2.53.0