gpio: aggregator: Replace custom get_arg() with a generic next_arg()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 1 Mar 2021 16:59:32 +0000 (18:59 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 5 May 2021 14:07:40 +0000 (16:07 +0200)
commitac505b6f5fa8289c3d3a311344de0da23f6ff767
tree86dada6b8f1bc747d914cbfcaeb5297c5dd10513
parent65dd36a39d3b350dc96d8324b348f0863d76404d
gpio: aggregator: Replace custom get_arg() with a generic next_arg()

cmdline library provides next_arg() helper to traverse over parameters
and their values given in command line. Replace custom approach in the driver
by it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/gpio/gpio-aggregator.c