lib/string_choices: Add str_write_read() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Jul 2023 18:52:11 +0000 (21:52 +0300)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 28 Jul 2023 15:05:47 +0000 (17:05 +0200)
commit81e4fc67415607fbd969ff518cc5cbd75e895738
treef1abed446ed6ff11a815f952872ad3f4e82c19a3
parent1d7546042f8fdc4bc39ab91ec966203e2d64f8bd
lib/string_choices: Add str_write_read() helper

Add an inversed variant of str_read_write(), i.e. str_write_read().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230703185222.50554-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
include/linux/string_choices.h