lib/string_helpers: Introduce kasprintf_strarray()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 5 Nov 2021 12:42:24 +0000 (14:42 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 18 Nov 2021 16:40:08 +0000 (18:40 +0200)
commit418e0a3551bbef5b221705b0e5b8412cdc0afd39
tree39e7d5c9c41662022115ba66fb470e993bc8153b
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
lib/string_helpers: Introduce kasprintf_strarray()

We have a few users already that basically want to have array of
sequential strings to be allocated and filled.

Provide a helper for them (basically adjusted version from gpio-mockup.c).

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/string_helpers.h
lib/string_helpers.c