]> www.infradead.org Git - users/jedix/linux-maple.git/commit
devres: Add devm_is_action_added() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 20 Feb 2025 16:20:27 +0000 (18:20 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 28 Apr 2025 07:30:41 +0000 (09:30 +0200)
commite383bb8f958444620d96386811aacf6a49757996
treee770fc7c2667a0a0611d7868781c6f1f5eab36db
parentf5e5631df596ade5875ba1dc5d640611745d0c0d
devres: Add devm_is_action_added() helper

In some code we would like to know if the action in device managed resources
was added by devm_add_action() family of calls. Introduce a helper for that.

Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Zijun Hu <quic_zijuhu@quicinc.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250220162238.2738038-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/base/devres.c
include/linux/device/devres.h