platform/x86: fujitsu: use unsigned int for kstrtounit

The charge control threshold value ranges from 0-100.

Signed-off-by: Jelle van der Waa <jvanderwaa@redhat.com>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Acked-by: Jonathan Woithe <jwoithe@just42.net>
Link: https://lore.kernel.org/r/20250609102115.36936-2-jvanderwaa@redhat.com
[ij: use reverse xmas-tree order]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
Jelle van der Waa 2025-06-09 12:21:13 +02:00 committed by Ilpo Järvinen
parent 5a7c909a53
commit d9926f09ed
No known key found for this signature in database
GPG Key ID: 59AC4F6153E5CE31

View File

@ -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;
unsigned int value;
int ret;
ret = kstrtouint(buf, 10, &value);
if (ret)