]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit703681dd590e5fc6df4a5c54871807a832cd1d99
tree0a1f1456135c0bc27ec2df60136770e24f0c7572
parente1f4d7ad458ad8f4464c04d34dfd1c7bb73c8a3c
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