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.2-rc1~188^2~3^5~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4612c7f1387df2f9f20a28b2a271e6cb154eb2b9;p=thirdparty%2Fkernel%2Flinux.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 cc2fe0618178e..2d81c742e4d2d 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;