Skip to content

Commit 4612c7f

Browse files
tititiou36rafaeljw
authored andcommitted
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 (<linux/kstrtox.h>) Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 30a0b95 commit 4612c7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/acpi/sysfs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/bitmap.h>
1010
#include <linux/init.h>
1111
#include <linux/kernel.h>
12+
#include <linux/kstrtox.h>
1213
#include <linux/moduleparam.h>
1314

1415
#include "internal.h"
@@ -992,7 +993,7 @@ static ssize_t force_remove_store(struct kobject *kobj,
992993
bool val;
993994
int ret;
994995

995-
ret = strtobool(buf, &val);
996+
ret = kstrtobool(buf, &val);
996997
if (ret < 0)
997998
return ret;
998999

0 commit comments

Comments
 (0)