From: Christophe JAILLET Date: Tue, 11 Jul 2023 17:41:10 +0000 (+0200) Subject: Bluetooth: hci_debugfs: Use kstrtobool() instead of strtobool() X-Git-Tag: v6.6-rc1~162^2~129^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82eae9dc438cd7932b5a1c79057378839f1e61e0;p=thirdparty%2Flinux.git Bluetooth: hci_debugfs: 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 Signed-off-by: Luiz Augusto von Dentz --- diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c index ec0df2f9188ed..6b7741f6e95b2 100644 --- a/net/bluetooth/hci_debugfs.c +++ b/net/bluetooth/hci_debugfs.c @@ -22,6 +22,7 @@ */ #include +#include #include #include @@ -1152,7 +1153,7 @@ static ssize_t force_no_mitm_write(struct file *file, return -EFAULT; buf[buf_size] = '\0'; - if (strtobool(buf, &enable)) + if (kstrtobool(buf, &enable)) return -EINVAL; if (enable == hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM))