gpio: deprecate devm_gpiod_unhinge()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 1 Apr 2025 12:46:43 +0000 (14:46 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 8 Apr 2025 08:41:58 +0000 (10:41 +0200)
commit686e54ea31f3b7d9d20ac1fa2d0295d649c41f56
treea927a757697511a1dad8d94afd4c594bcff8b904
parent6deb8435f6bfcc9b6c7efe3b8a941ae2fb731495
gpio: deprecate devm_gpiod_unhinge()

This function was introduced as a workaround for an issue with resource
ownership in the regulator subsystem. Rather than passing the ownership
of a GPIO, we should make the regulator core be able to deal with
resources it didn't request. Deprecate this function so that we don't
get more users in the tree.

Link: https://lore.kernel.org/r/20250401-gpio-todo-remove-nonexclusive-v2-2-7c1380797b0d@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-devres.c