mbox series

[v2,0/2] gpio: xilinx: Replace custom bitmap APIs

Message ID 20250205093200.373709-1-andriy.shevchenko@linux.intel.com (mailing list archive)
Headers show
Series gpio: xilinx: Replace custom bitmap APIs | expand

Message

Andy Shevchenko Feb. 5, 2025, 9:31 a.m. UTC
Relatively recently bitmap APIs gain a few new calls which may help
to convert the GPIO Xilinx driver to use them and become shorter and
nicer. This mini-series does exactly that.

Changelog v2:
- fixed a regression in patch 2

Andy Shevchenko (2):
  gpio: xilinx: Use better bitmap APIs where appropriate
  gpio: xilinx: Replace custom variants of bitmap_read()/bitmap_write()

 drivers/gpio/gpio-xilinx.c | 102 ++++++++++++++-----------------------
 1 file changed, 37 insertions(+), 65 deletions(-)

Comments

Andy Shevchenko Feb. 5, 2025, 9:44 a.m. UTC | #1
+Cc: Yury

On Wed, Feb 05, 2025 at 11:31:09AM +0200, Andy Shevchenko wrote:
> Relatively recently bitmap APIs gain a few new calls which may help
> to convert the GPIO Xilinx driver to use them and become shorter and
> nicer. This mini-series does exactly that.
> 
> Changelog v2:
> - fixed a regression in patch 2
> 
> Andy Shevchenko (2):
>   gpio: xilinx: Use better bitmap APIs where appropriate
>   gpio: xilinx: Replace custom variants of bitmap_read()/bitmap_write()

Yury, just FYI, after this series, if applied, the bitmap_remap() and
bitmap_bitremap() may be moved to the NUMA only APIs. Or i.o.w. the
commit cde3d0f81e67 ("bitmap: Make bitmap_remap() and bitmap_bitremap()
available to users") may be reverted.