WSL2-Linux-Kernel/include/linux/device
Greg Kroah-Hartman 8c99377e61 driver core: bus: add bus_get_dev_root() function
Instead of poking around in the struct bus_type directly for the
dev_root pointer, provide a function to return it properly reference
counted, if it is present in the bus.  This will be needed to move the
pointer out of struct bus_type in the future.

Use the function in the driver core code at the same time it is
introduced to verify that it works properly.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230209093556.19132-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-10 10:16:42 +01:00
..
bus.h driver core: bus: add bus_get_dev_root() function 2023-02-10 10:16:42 +01:00
class.h driver core: make struct class.devnode() take a const * 2022-11-24 17:12:27 +01:00
driver.h driver core: Make driver_deferred_probe_timeout a static variable 2023-01-11 16:06:40 +01:00