usb: sysfs: use kstrtobool() if possible
authorGuan-Yu Lin <guanyulin@google.com>
Fri, 2 Feb 2024 03:00:42 +0000 (03:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:00:33 +0000 (17:00 +0100)
commit136a73da8e3d771567a0a78e0af867d3f9cf63eb
tree47d9bd9c21633d20fdb9e953a3ba6ddb3bd4f86c
parentd2f4831eafbaba63dc79c4f0512f11822b24c3e7
usb: sysfs: use kstrtobool() if possible

Replace the self-rolled implementations with kstrtobool(). This reduces
the maintenance efforts in the future.

Signed-off-by: Guan-Yu Lin <guanyulin@google.com>
Link: https://lore.kernel.org/r/20240202030301.2396374-1-guanyulin@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/sysfs.c