aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/string_choices.h
AgeCommit message (Collapse)Author
2024-04-25master: sync with upstream 6.6Bruce Ashfield
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-06-12lib/string_choices: Add str_high_low() helperAndy Shevchenko
Add str_high_low() helper to return 'high' or 'low' string literal. Also add an inversed variant, i.e. str_low_high(). All the same for str_hi_low(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
2023-06-12lib/string_helpers: Split out string_choices.hAndy Shevchenko
Some users may only need the string choice APIs. Split the respective header, i.e. string_choices.h. Include it in the string_helpers.h for backward compatibility. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>