string_choices: Add wrapper for str_down_up()
authorKees Cook <kees@kernel.org>
Mon, 12 Aug 2024 18:29:40 +0000 (11:29 -0700)
committerKees Cook <kees@kernel.org>
Thu, 15 Aug 2024 16:26:02 +0000 (09:26 -0700)
commitf5c1ca3a15fdb867d2b535003f74e0b975eff116
tree617df1f8d6b8021b5337904816ecb9ff759827f9
parent9b97452bcce77f8ef29b20c9662d95988b5990e4
string_choices: Add wrapper for str_down_up()

The string choice functions which are not clearly true/false synonyms
also have inverted wrappers. Add this for str_down_up() as well.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240812182939.work.424-kees@kernel.org
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Kees Cook <kees@kernel.org>
include/linux/string_choices.h