gpio: aggregator: Replace isrange() by using get_options()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 22 Jan 2021 12:38:51 +0000 (14:38 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:31 +0000 (11:43 +0100)
commitdeb631c40114409077bb972b99fe80967bd62fd1
tree0a70f1d5ad0374d50d8dfe5afe72c9a2d63ccaed
parent0ea09083116de44f1a938482fb704bbfcc7ae6f4
gpio: aggregator: Replace isrange() by using get_options()

We already have a nice helper called get_options() which can be used
to validate the input format. Replace isrange() by using it.

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