From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Jelle van der Waa <jvanderwaa@redhat.com>
Cc: Jonathan Woithe <jwoithe@just42.net>,
Hans de Goede <hdegoede@redhat.com>,
platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH 1/2] platform/x86: fujitsu: use unsigned int for kstrtounit
Date: Fri, 13 Jun 2025 13:14:25 +0300 (EEST) [thread overview]
Message-ID: <4785783c-a1a5-7447-6670-5466ed551889@linux.intel.com> (raw)
In-Reply-To: <20250609102115.36936-2-jvanderwaa@redhat.com>
On Mon, 9 Jun 2025, Jelle van der Waa wrote:
> The charge control threshold value ranges from 0-100.
>
> Signed-off-by: Jelle van der Waa <jvanderwaa@redhat.com>
> ---
> drivers/platform/x86/fujitsu-laptop.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c
> index 162809140f68..c8aeb28a783c 100644
> --- a/drivers/platform/x86/fujitsu-laptop.c
> +++ b/drivers/platform/x86/fujitsu-laptop.c
> @@ -180,7 +180,8 @@ static ssize_t charge_control_end_threshold_store(struct device *dev,
> const char *buf, size_t count)
> {
> int cc_end_value, s006_cc_return;
> - int value, ret;
> + int ret;
> + unsigned int value;
Thanks.
I've applied this series to the review-ilpo-next branch but I changed
these variables to the reverse xmas-tree order while applying. In general,
if there's no good reason to do otherwise, reverse xmas tree order is
preferred for local variables.
>
> ret = kstrtouint(buf, 10, &value);
> if (ret)
>
--
i.
next prev parent reply other threads:[~2025-06-13 10:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-09 10:21 [PATCH 0/2] platform/x86: clamp charge thresholds on fujitsu Jelle van der Waa
2025-06-09 10:21 ` [PATCH 1/2] platform/x86: fujitsu: use unsigned int for kstrtounit Jelle van der Waa
2025-06-09 10:36 ` Hans de Goede
2025-06-13 10:14 ` Ilpo Järvinen [this message]
2025-06-09 10:21 ` [PATCH 2/2] platform/x86: fujitsu: clamp charge_control_end_threshold values to 50 Jelle van der Waa
2025-06-09 10:38 ` Hans de Goede
2025-06-09 10:47 ` [PATCH 0/2] platform/x86: clamp charge thresholds on fujitsu Jonathan Woithe
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=4785783c-a1a5-7447-6670-5466ed551889@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=jvanderwaa@redhat.com \
--cc=jwoithe@just42.net \
--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