gpiolib: Introduce for_each_requested_gpio_in_range() macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 Jun 2020 15:05:41 +0000 (18:05 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 20 Jun 2020 21:13:26 +0000 (23:13 +0200)
commitb3337eb24831db058231ea87838f316d9eb86253
tree371b1e6a3e5aa6622b4790de00ab7086e227d1a6
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
gpiolib: Introduce for_each_requested_gpio_in_range() macro

Introduce for_each_requested_gpio_in_range() macro which helps
to iterate over requested GPIO in a range. There are already
potential users of it, which are going to be converted
by the following patches.

For most of them for_each_requested_gpio() shortcut has been added.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200615150545.87964-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/gpio/driver.h