aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorHongbo Li <lihongbo22@huawei.com>2024-09-05 17:25:39 +0800
committerKees Cook <kees@kernel.org>2024-09-05 09:50:15 -0700
commitc2708ba91c3c1fba424b77de83b6fc45cbf38c46 (patch)
tree48b7ee80f2535ff364d18e38209d0b7ce0443acb /fs
parent6ff4cd1160afafc12ad1603e3d2f39256e4b708d (diff)
lib/string_choices: Introduce several opposite string choice helpers
Similar to the exists helper: str_enable_disable/ str_enabled_disabled/str_on_off/str_yes_no helpers, we can add the opposite helpers. That's str_disable_enable, str_disabled_enabled, str_off_on and str_no_yes. There are more than 10 cases currently (expect str_disable_enable now has 3 use cases) exist in the code can be replaced with these helper. Signed-off-by: Hongbo Li <lihongbo22@huawei.com> Acked-by: Andy Shevchenko <andy@kernel.org> Link: https://lore.kernel.org/r/20240905092540.2962122-2-lihongbo22@huawei.com Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions