Commit 25fb5f4
platform/x86: asus-wmi: Ignore return value when writing thermal policy
On some machines like the ASUS Vivobook S14 writing the thermal policy
returns the currently writen thermal policy instead of an error code.
Ignore the return code to avoid falsely returning an error when the
thermal policy was written successfully.
Reported-by: [email protected]
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219517
Fixes: 2daa86e ("platform/x86: asus_wmi: Support throttle thermal policy")
Signed-off-by: Armin Wolf <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>1 parent 3510398 commit 25fb5f4
1 file changed
+2
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3696 | 3696 | | |
3697 | 3697 | | |
3698 | 3698 | | |
3699 | | - | |
3700 | 3699 | | |
3701 | 3700 | | |
3702 | 3701 | | |
| |||
3718 | 3717 | | |
3719 | 3718 | | |
3720 | 3719 | | |
3721 | | - | |
3722 | | - | |
| 3720 | + | |
| 3721 | + | |
3723 | 3722 | | |
3724 | 3723 | | |
3725 | 3724 | | |
| |||
3729 | 3728 | | |
3730 | 3729 | | |
3731 | 3730 | | |
3732 | | - | |
3733 | | - | |
3734 | | - | |
3735 | | - | |
3736 | | - | |
3737 | | - | |
3738 | 3731 | | |
3739 | 3732 | | |
3740 | 3733 | | |
| |||
0 commit comments