public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] gpio: drop bitmap_complement() where feasible
@ 2026-04-17 17:59 Yury Norov
  2026-04-17 17:59 ` [PATCH v2 1/2] gpio: pca953x: " Yury Norov
  2026-04-17 17:59 ` [PATCH v2 2/2] gpio: xilinx: " Yury Norov
  0 siblings, 2 replies; 3+ messages in thread
From: Yury Norov @ 2026-04-17 17:59 UTC (permalink / raw)
  To: Linus Walleij, Andy Shevchenko, Bartosz Golaszewski,
	Shubhrajyoti Datta, Srinivas Neeli, Michal Simek, Yury Norov,
	linux-gpio, linux-kernel, linux-arm-kernel
  Cc: Yury Norov

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-17 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-17 17:59 [PATCH v2 0/2] gpio: drop bitmap_complement() where feasible Yury Norov
2026-04-17 17:59 ` [PATCH v2 1/2] gpio: pca953x: " Yury Norov
2026-04-17 17:59 ` [PATCH v2 2/2] gpio: xilinx: " Yury Norov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox