]> www.infradead.org Git - users/dwmw2/linux.git/commit
platform/x86: asus-wmi: Ignore return value when writing thermal policy
authorArmin Wolf <W_Armin@gmx.de>
Sun, 24 Nov 2024 17:19:41 +0000 (18:19 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 2 Dec 2024 16:54:12 +0000 (18:54 +0200)
commit25fb5f47f34d90aceda2c47a4230315536e97fa8
treec2e3c13d92279aaf2e6155a1e1556045c9828dc3
parent3510398032b445abd034753ce86a60882f41fe27
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: auslands-kv@gmx.de
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219517
Fixes: 2daa86e78c49 ("platform/x86: asus_wmi: Support throttle thermal policy")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241124171941.29789-1-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-wmi.c