drivers: base: component: add function to query the bound
From: Heiko Stuebner <heiko@...> Date: Fri, 21 Feb 2025 00:25:06 +0100
Commit-Message
The component helpers already expose the bound status in debugfs, but at times it might be necessary to also check that state in the kernel and act differently depending on the result. For example the shutdown handler of a drm-driver might need to stop a whole output pipeline if the drm device is up and running, but may run into problems if that drm-device has never been set up before, for example because the binding deferred. So add a little helper that returns the bound status for a componet device. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
drivers/base/component.c | 14 ++++++++++++++ include/linux/component.h | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-)
Statistics
- 17 lines added
- 1 lines removed