]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: xilinx: Use better bitmap APIs where appropriate
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 5 Feb 2025 09:31:10 +0000 (11:31 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 12 Feb 2025 09:58:14 +0000 (10:58 +0100)
commit2af1f667532013eb354c783514839f89d9923240
tree795692570edffeedc1f4cb9a5f3dc1ffabb6d778
parent8beaf839018096cd20e427e68645b4fbecdcb1f0
gpio: xilinx: Use better bitmap APIs where appropriate

There are bitmap_gather() and bitmap_scatter() that are factually
simplified version of the APIs used in the driver. Use them where
appropriate.

While at it, replace bitmap_bitremap() with find_nth_bit()
for the sake of simplification.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250205093200.373709-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-xilinx.c