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.

lib/kstrtox: fix kstrtobool() docstring to mention enabled/disabled

Commit ae5b3500856f ("kstrtox: add support for enabled and disabled in
kstrtobool()") added support for 'e'/'E' (enabled) and 'd'/'D' (disabled)
inputs, but did not update the docstring accordingly.

Update the docstring to include 'Ee' (for true) and 'Dd' (for false) in
the list of accepted first characters.

Link: https://lkml.kernel.org/r/20251227092229.57330-1-chaitanyamishra.ai@gmail.com
Fixes: ae5b3500856f ("kstrtox: add support for enabled and disabled in kstrtobool()")
Signed-off-by: Chaitanya Mishra <chaitanyamishra.ai@gmail.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Chaitanya Mishra and committed by
Andrew Morton
1921044e ad533a74

+2 -2
+2 -2
lib/kstrtox.c
··· 340 340 * @s: input string 341 341 * @res: result 342 342 * 343 - * This routine returns 0 iff the first character is one of 'YyTt1NnFf0', or 344 - * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value 343 + * This routine returns 0 iff the first character is one of 'EeYyTt1DdNnFf0', 344 + * or [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value 345 345 * pointed to by res is updated upon finding a match. 346 346 */ 347 347 noinline