linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] gpiolib: legacy: Allow *gpio_request_one() to die independently
@ 2025-11-12  9:32 Andy Shevchenko
  2025-11-12  9:32 ` [PATCH v1 1/2] gpiolib: legacy: Make sure we kill gpio_request_one() first Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andy Shevchenko @ 2025-11-12  9:32 UTC (permalink / raw)
  To: Andy Shevchenko, linux-gpio, linux-kernel
  Cc: Linus Walleij, Bartosz Golaszewski

Allow *gpio_request_one() to die independently and make sure
the gpio_request_one() gone first (before gpio_request() removal).
Currently the devm_gpio_request_one() depends on gpio_request_one().
Open code the latter in the former to break the dependency. Also
convert the latter to use legacy APIs, so we can kill it first
as it's not only the logical move, but an easier task due to less
amount of the leftover users in the kernel.

Besides that, we gain a few LoCs with this small refactoring, which
I consider a positive change alone.

Andy Shevchenko (2):
  gpiolib: legacy: Make sure we kill gpio_request_one() first
  gpiolib: legacy: Allow to kill devm_gpio_request_one() independently

 drivers/gpio/gpiolib-legacy.c | 44 +++++++++++++----------------------
 1 file changed, 16 insertions(+), 28 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2025-11-17  9:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12  9:32 [PATCH v1 0/2] gpiolib: legacy: Allow *gpio_request_one() to die independently Andy Shevchenko
2025-11-12  9:32 ` [PATCH v1 1/2] gpiolib: legacy: Make sure we kill gpio_request_one() first Andy Shevchenko
2025-11-12  9:32 ` [PATCH v1 2/2] gpiolib: legacy: Allow to kill devm_gpio_request_one() independently Andy Shevchenko
2025-11-17  9:57 ` [PATCH v1 0/2] gpiolib: legacy: Allow *gpio_request_one() to die independently Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).