driver core: bus: bus_get_kset() cleanup
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 11:13:18 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 09:43:21 +0000 (10:43 +0100)
commitbeea7892d4339e50f15e5131d51a95503678fdf6
treedbbd00401e81488b14b7e4616a5f7d99e4710b6a
parentadac0375380a7d3e50194cc5b03b676b0321bded
driver core: bus: bus_get_kset() cleanup

Convert the bus_get_kset() function function to use bus_to_subsys() and
not use the back-pointer to the private structure.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230208111330.439504-10-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/bus.c