]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpiolib: Switch to use for_each_if() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Feb 2025 18:24:01 +0000 (20:24 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 17 Feb 2025 13:27:35 +0000 (14:27 +0100)
commit23318614f8c146d440e57a69d7171dd8c0d249b7
tree4f87a4f843bfb887e1255d026114bd09e7bdf7c9
parentb2108fc82a0acda34388bff3e3ee3544013b1623
gpiolib: Switch to use for_each_if() helper

The for_each_*() APIs that are conditional can be written shorter and
less error prone with for_each_if() helper in use. Switch them to use
this helper.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250213182527.3092371-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
include/linux/gpio/driver.h