Skip to content

gpio: ppc44x: assorted cleanups

Rosen Penev linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5gpio: ppc44x: drop redundant label and parent assignmentsdrivers/gpio/gpio-ppc44x.c+0 -20 replies
2/5gpio: ppc44x: factor out the OSR/TSR source selectiondrivers/gpio/gpio-ppc44x.c+17 -160 replies
3/5gpio: ppc44x: fold __ppc44x_gpio_set() into ppc44x_gpio_dir_out()drivers/gpio/gpio-ppc44x.c+10 -181 reply
4/5gpio: ppc44x: use BIT() and GENMASK() for the pin masksdrivers/gpio/gpio-ppc44x.c+4 -20 replies
5/5gpio: ppc44x: tidy up includes and probedrivers/gpio/gpio-ppc44x.c+6 -145 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] gpio: ppc44x: assorted cleanups

A follow-up to the earlier ppc44x GPIO conversion to gpio-mmio. With the driver now built on gpio_generic_chip, a few leftovers can go:

- Patch 1 drops the label and parent assignments that gpio_generic_chip_init() already does.
- Patches 2-3 deduplicate the OSR/TSR source selection shared by both direction callbacks and fold the single-caller __ppc44x_gpio_set() into ppc44x_gpio_dir_out().
- Patch 4 expresses the MSB-first pin masks with BIT() and GENMASK().
- Patch 5 trims includes, switches to devm_kzalloc_obj() and tidies up probe and the OF match table.

No functional change intended.

An AI coding assistant (Claude) was used to help prepare this series.

Rosen Penev (5):
gpio: ppc44x: drop redundant label and parent assignments
gpio: ppc44x: factor out the OSR/TSR source selection
gpio: ppc44x: fold __ppc44x_gpio_set() into ppc44x_gpio_dir_out()
gpio: ppc44x: use BIT() and GENMASK() for the pin masks
gpio: ppc44x: tidy up includes and probe

 drivers/gpio/gpio-ppc44x.c | 89 ++++++++++++++++----------------------
 1 file changed, 37 insertions(+), 52 deletions(-)
Signature · 1 line
2.56.0