Skip to content

gpio: Unify the GPIO controller node check

Andy Shevchenko linux-arm-kernel linux-gpio lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4gpio: Split fwnode_is_gpiochip() helperinclude/linux/gpio/driver.h+6 -10 replies
2/4gpio: shared: Replace open coded fwnode_is_gpiochip()drivers/gpio/gpiolib-shared.c+2 -41 reply
3/4pinctrl: ma35: Replace open coded fwnode_is_gpiochip()drivers/pinctrl/nuvoton/pinctrl-ma35.c+2 -21 reply
4/4pinctrl: pistachio: Replace open coded fwnode_is_gpiochip()drivers/pinctrl/pinctrl-pistachio.c+1 -10 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchLinus Walleij
1/4
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/4] gpio: Unify the GPIO controller node check

There are handful of drivers perform the same check in different variations over and over with a potential to make subtle mistakes. Unify the check by providing a new helper and convert a few users as an example.

Andy Shevchenko (4):
gpio: Split fwnode_is_gpiochip() helper
gpio: shared: Replace open coded fwnode_is_gpiochip()
pinctrl: ma35: Replace open coded fwnode_is_gpiochip()
pinctrl: pistachio: Replace open coded fwnode_is_gpiochip()

 drivers/gpio/gpiolib-shared.c          | 6 ++----
 drivers/pinctrl/nuvoton/pinctrl-ma35.c | 4 ++--
 drivers/pinctrl/pinctrl-pistachio.c    | 2 +-
 include/linux/gpio/driver.h            | 7 ++++++-
 4 files changed, 11 insertions(+), 8 deletions(-)
Signature · 1 line
2.50.1