[PATCH v2 0/2] gpio: drop bitmap_complement() where feasible
Yury Norov
ynorov at nvidia.com
Fri Apr 17 10:59:52 PDT 2026
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@nvidia.com/
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
More information about the linux-arm-kernel
mailing list