mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
lib/kstrtox: fix kstrtobool() docstring to mention enabled/disabled
Commitae5b350085("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:ae5b350085("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>
This commit is contained in:
parent
ad533a740c
commit
1921044eeb
1 changed files with 2 additions and 2 deletions
|
|
@ -340,8 +340,8 @@ EXPORT_SYMBOL(kstrtos8);
|
|||
* @s: input string
|
||||
* @res: result
|
||||
*
|
||||
* This routine returns 0 iff the first character is one of 'YyTt1NnFf0', or
|
||||
* [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value
|
||||
* This routine returns 0 iff the first character is one of 'EeYyTt1DdNnFf0',
|
||||
* or [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value
|
||||
* pointed to by res is updated upon finding a match.
|
||||
*/
|
||||
noinline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue