Skip to content

gpiolib: Make code more robust by using for_each_if()

Andy Shevchenko dri-devel linux-gpio lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 6 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2drm: Move for_each_if() to util_macros.h for wider useinclude/drm/drm_util.h include/linux/util_macros.h+16 -154 replies
2/2gpiolib: Switch to use for_each_if() helperinclude/linux/gpio/driver.h+4 -30 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBartosz GolaszewskiJani NikulaLinus Walleij
SeriesR-b
1/2R-b A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] gpiolib: Make code more robust by using for_each_if()

Instead of opencoding with long lines, use for_each_if() macro which makes intention clearer and less error prone.

In v2:
- moved original for_each_if() implementation to the global header (Bart)

Andy Shevchenko (2):
drm: Move for_each_if() to util_macros.h for wider use
gpiolib: Switch to use for_each_if() helper

 include/drm/drm_util.h      | 16 +---------------
 include/linux/gpio/driver.h |  7 ++++---
 include/linux/util_macros.h | 15 +++++++++++++++
 3 files changed, 20 insertions(+), 18 deletions(-)
Signature · 1 line
2.45.1.3035.g276e886db78b