diff options
author | 2025-01-05 16:34:09 +0800 | |
---|---|---|
committer | 2025-01-10 15:26:12 +0100 | |
commit | 51796f5e2960130fe53e9a71d07152622d5e024c (patch) | |
tree | 6a0d663bdffbf68122ea4d5e725d1b5dc293a13b /rust/kernel | |
parent | driver core: Introduce device_iter_t for device iterating APIs (diff) | |
download | wireguard-linux-51796f5e2960130fe53e9a71d07152622d5e024c.tar.xz wireguard-linux-51796f5e2960130fe53e9a71d07152622d5e024c.zip |
driver core: Move two simple APIs for finding child device to header
The following two APIs are for finding child device, and both only have
one line code in function body.
device_find_child_by_name()
device_find_any_child()
Move them to header as static inline function.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20250105-class_fix-v6-8-3a2f1768d4d4@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions