]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Introduce device_find_any_child() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 10 Jun 2022 12:02:18 +0000 (15:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 14:01:55 +0000 (16:01 +0200)
commit596d01b06558025e76ce41c29bed66d091d2a60c
treedc57dd5168c9bc4c2ade5e1db0503c0e9f7ae25a
parentefb22db245baf17e22f780b60f8763865496db74
driver core: Introduce device_find_any_child() helper

There are several places in the kernel where this kind of functionality is
being used. Provide a generic helper for such cases.

Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220610120219.18988-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/device.h