Skip to content

gpio: drop bitmap_complement() where feasible

Yury Norov linux-arm-kernel linux-gpio lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- cleanup typos (Michal);
- split per individual drivers (Andy).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpio: pca953x: drop bitmap_complement() where feasibledrivers/gpio/gpio-pca953x.c+2 -50 replies
2/2gpio: xilinx: drop bitmap_complement() where feasibledrivers/gpio/gpio-xilinx.c+2 -41 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndy ShevchenkoMichal Simek
1/2R-b
2/2R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] gpio: drop bitmap_complement() where feasible

The gpio drivers reproduce the following pattern:

	bitmap_complement(tmp, data1, nbits);
	bitmap_and(dst, data2, tmp, nbits);

This can be done in a single pass:

	bitmap_andnot(dst, data2, data1, nbits);

v1: https://lore.kernel.org/all/[email protected]/
v2:
- cleanup typos (Michal);
- split per individual drivers (Andy).

Yury Norov (2):
gpio: pca953x: drop bitmap_complement() where feasible
gpio: xilinx: drop bitmap_complement() where feasible

 drivers/gpio/gpio-pca953x.c | 7 ++-----
 drivers/gpio/gpio-xilinx.c  | 6 ++----
 2 files changed, 4 insertions(+), 9 deletions(-)
Signature · 1 line
2.51.0