driver core: bus: bus_register/unregister_notifier() cleanups
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 11:13:19 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 09:43:24 +0000 (10:43 +0100)
commit32a8121a19c4936672440c96371f6a8c2b0c3d4d
treed9e1e4e41a7c3b07545a3026fbb182989519dc13
parentbeea7892d4339e50f15e5131d51a95503678fdf6
driver core: bus: bus_register/unregister_notifier() cleanups

Convert the bus_register_notifier() and bus_unregister_notifier() public
functions to use bus_to_subsys() and not use the back-pointer to the
private structure as well as the bus_notify() function.

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