mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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:
parent
5a7c909a53
commit
d9926f09ed
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user