[PATCH v2 0/2] gpio: drop bitmap_complement() where feasible
From: Yury Norov
Date: Fri Apr 17 2026 - 14:00:21 EST
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/20260417033439.318930-1-ynorov@xxxxxxxxxx/
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(-)
--
2.51.0