From: Christophe JAILLET Date: Tue, 1 Nov 2022 21:13:57 +0000 (+0100) Subject: ACPI: sysfs: Use kstrtobool() instead of strtobool() X-Git-Tag: v6.6.17~5911^2~5^5~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4612c7f1387df2f9f20a28b2a271e6cb154eb2b9;p=platform%2Fkernel%2Flinux-rpi.git ACPI: sysfs: Use kstrtobool() instead of strtobool() strtobool() is the same as kstrtobool(). However, the latter is more used within the kernel. In order to remove strtobool() and slightly simplify kstrtox.h, switch to the other function name. While at it, include the corresponding header file () Signed-off-by: Christophe JAILLET Reviewed-by: Andy Shevchenko Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index cc2fe06..2d81c74 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "internal.h" @@ -992,7 +993,7 @@ static ssize_t force_remove_store(struct kobject *kobj, bool val; int ret; - ret = strtobool(buf, &val); + ret = kstrtobool(buf, &val); if (ret < 0) return ret;