lib/string_helpers: Introduce parse_int_array_user()
authorMark Brown <broonie@kernel.org>
Mon, 5 Sep 2022 15:49:32 +0000 (16:49 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Sep 2022 15:49:32 +0000 (16:49 +0100)
commitd2a411f810a0db055f02cc18e5cfa833bb2c9ccc
treebce20a07308ef0d0a2d0121a6f4d482400d0e96e
parentcdcdb008552670abd6f60a1777d3723e6ca2716b
parentb9163e9b5f14d690752010ee843b2d788c3536f1
lib/string_helpers: Introduce parse_int_array_user()

Merge series from Cezary Rojewski <cezary.rojewski@intel.com>:

Continuation of recent upstream discussion [1] regarding user string
tokenization.

First, parse_int_array_user() is introduced to allow for splitting
specified user string into a sequence of integers. Makes use of
get_options() internally so the parsing logic is not duplicated.

With that done, redundant parts of the sound driver are removed.

Originally similar functionality was added for the SOF sound driver. As
more users are on the horizon, it is desirable to update existing
string_helpers code and provide a unified solution.