Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 (<linux/kstrtox.h>)

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Christophe JAILLET and committed by
Luiz Augusto von Dentz
82eae9dc 59be4be8

+2 -1
+2 -1
net/bluetooth/hci_debugfs.c
··· 22 22 */ 23 23 24 24 #include <linux/debugfs.h> 25 + #include <linux/kstrtox.h> 25 26 26 27 #include <net/bluetooth/bluetooth.h> 27 28 #include <net/bluetooth/hci_core.h> ··· 1153 1152 return -EFAULT; 1154 1153 1155 1154 buf[buf_size] = '\0'; 1156 - if (strtobool(buf, &enable)) 1155 + if (kstrtobool(buf, &enable)) 1157 1156 return -EINVAL; 1158 1157 1159 1158 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM))