[PATCH v1 0/3] gpio: Introduce helper to dispose IRQ mappings

From: Andy Shevchenko

Date: Wed Oct 21 2026 - 16:47:15 EST


I have noticed that a few drivers use almost the same code to dispose IRQ
mappings. This series to deduplicate the efforts. I only converted a couple
of the users (there are potentially more) in order to stay in the same
subsystem.

Andy Shevchenko (3):
gpiolib: Introduce devm_gpiochip_dispose_irq_mappings()
gpio: mockup: Replace custom devm_gpiochip_dispose_irq_mappings()
gpio: sim: Replace custom devm_gpiochip_dispose_irq_mappings()

drivers/gpio/gpio-mockup.c | 15 +--------------
drivers/gpio/gpio-sim.c | 17 ++++-------------
drivers/gpio/gpiolib-devres.c | 33 +++++++++++++++++++++++++++++++++
include/linux/gpio/driver.h | 4 ++++
4 files changed, 42 insertions(+), 27 deletions(-)

--
2.50.1