From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Alexis Belmonte <alexbelm48@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>,
W_Armin@gmx.de, platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] platform/x86: hp-wmi: Fix implementation of the platform_profile_omen_get function
Date: Mon, 15 Jul 2024 12:39:22 +0300 (EEST) [thread overview]
Message-ID: <d616eb65-dd32-faff-2fb9-686305c1810b@linux.intel.com> (raw)
In-Reply-To: <ZpFnV8w1558BW7iZ@alexis-pc>
On Fri, 12 Jul 2024, Alexis Belmonte wrote:
> Fix ill-formed implementation of the platform_profile_omen_get function
> introduced by patch "platform/x86: hp-wmi: Fix platform profile option
> switch"
>
> Signed-off-by: Alexis Belmonte <alexbelm48@gmail.com>
I took this patch but there were a number of issues with it I had to fix:
- Reported-by tag missing
- Fixes tag missing
- You didn't tell in the commit message what was wrong.
--
i.
> ---
> drivers/platform/x86/hp/hp-wmi.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
> index c8bcb3e2b344..876e0a97cee1 100644
> --- a/drivers/platform/x86/hp/hp-wmi.c
> +++ b/drivers/platform/x86/hp/hp-wmi.c
> @@ -1238,8 +1238,6 @@ static int platform_profile_omen_get_ec(enum platform_profile_option *profile)
> static int platform_profile_omen_get(struct platform_profile_handler *pprof,
> enum platform_profile_option *profile)
> {
> - enum platform_profile_option selected_platform_profile;
> -
> /*
> * We directly return the stored platform profile, as the embedded
> * controller will not accept switching to the performance option when
> @@ -1253,9 +1251,9 @@ static int platform_profile_omen_get(struct platform_profile_handler *pprof,
> * See also omen_powersource_event.
> */
> guard(mutex)(&active_platform_profile_lock);
> - selected_platform_profile = active_platform_profile;
> + *profile = active_platform_profile;
>
> - return selected_platform_profile;
> + return 0;
> }
>
> static bool has_omen_thermal_profile_ec_timer(void)
>
next prev parent reply other threads:[~2024-07-15 9:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-12 17:26 [PATCH] platform/x86: hp-wmi: Fix implementation of the platform_profile_omen_get function Alexis Belmonte
2024-07-14 4:46 ` Armin Wolf
2024-07-15 9:39 ` Ilpo Järvinen [this message]
2024-07-15 14:14 ` Alexis Belmonte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d616eb65-dd32-faff-2fb9-686305c1810b@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=W_Armin@gmx.de \
--cc=alexbelm48@gmail.com \
--cc=hdegoede@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox