Skip to content

Commit 01fd7e7

Browse files
t-8chjwrdegoede
authored andcommitted
platform/x86: asus-wmi: Don't load fan curves without fan
If we do not have a fan it does not make sense to load curves for it. This removes the following warnings from the kernel log: asus_wmi: fan_curve_get_factory_default (0x00110024) failed: -19 asus_wmi: fan_curve_get_factory_default (0x00110025) failed: -19 Fixes: a2bdf10 ("platform/x86: asus-wmi: Increase FAN_CURVE_BUF_LEN to 32") Signed-off-by: Thomas Weißschuh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 82cc5c6 commit 01fd7e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/platform/x86/asus-wmi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,6 +2438,9 @@ static int fan_curve_check_present(struct asus_wmi *asus, bool *available,
24382438

24392439
*available = false;
24402440

2441+
if (asus->fan_type == FAN_TYPE_NONE)
2442+
return 0;
2443+
24412444
err = fan_curve_get_factory_default(asus, fan_dev);
24422445
if (err) {
24432446
return 0;

0 commit comments

Comments
 (0)