lib/string_helpers: Introduce parse_int_array_user()
mainline inclusion from mainline-v6.1-rc1 commit f0b93323 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8WOEC Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f0b933236ec97de5ee49c60aae57a9c5c4dadc87 ------------------------------------- Add new helper function to allow for splitting specified user string into a sequence of integers. Internally it makes use of get_options() so the returned sequence contains the integers extracted plus an additional element that begins the sequence and specifies the integers count. Intel-SIG: commit f0b93323 lib/string_helpers: Introduce parse_int_array_user(). Backport Intel_tpmi base driver. Suggested-by:Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by:
Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by:
Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20220904102840.862395-2-cezary.rojewski@intel.com Signed-off-by:
Mark Brown <broonie@kernel.org> [ Yingbao Jia: amend commit log ] Signed-off-by:
Yingbao Jia <yingbao.jia@intel.com>
Loading
Please sign in to comment