]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: hp-wmi: Fix implementation of the platform_profile_omen_get function
authorAlexis Belmonte <alexbelm48@gmail.com>
Fri, 12 Jul 2024 17:26:47 +0000 (19:26 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 15 Jul 2024 09:38:42 +0000 (12:38 +0300)
commitf6bd2f633b686cdd6a466a4d8484fb74492b1125
tree925e43a2b7d86b704a30ca022e189fb11a66c21c
parent1e02e317470b1c68d5971e51e8c62967ec1bc828
platform/x86: hp-wmi: Fix implementation of the platform_profile_omen_get function

Fix ill-formed implementation of the platform_profile_omen_get function
introduced by the commit d23430233494 ("platform/x86: hp-wmi: Fix
platform profile option switch bug on Omen and Victus laptops").
platform_profile_omen_get() is .profile_get function that should set
*profile and return 0 on success.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: d23430233494 ("platform/x86: hp-wmi: Fix platform profile option switch bug on Omen and Victus laptops")
Signed-off-by: Alexis Belmonte <alexbelm48@gmail.com>
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/ZpFnV8w1558BW7iZ@alexis-pc
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/hp/hp-wmi.c