gpio: aggregator: Use bitmap_parselist() for parsing GPIO offsets
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 1 Jul 2020 11:42:12 +0000 (13:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Jul 2020 12:30:27 +0000 (14:30 +0200)
commitec75039d55500ee033236aa25f7642a5b449a23c
tree0a1f1456135c0bc27ec2df60136770e24f0c7572
parent2073ea3ab181d42b4fd179ec3f74d53acefb563a
gpio: aggregator: Use bitmap_parselist() for parsing GPIO offsets

Replace the custom code to parse GPIO offsets and/or GPIO offset ranges
by a call to bitmap_parselist(), and an iteration over the returned bit
mask.

This should have no impact on the format of the configuration parameters
written to the "new_device" virtual file in sysfs.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20200701114212.8520-3-geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aggregator.c