Commit f91482be authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

driver core: bus: constify bus_get_kset()

The bus_get_kset() function should be taking a const * to bus_type, not
just a * so fix that up.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230208111330.439504-20-gregkh@linuxfoundation.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bc8b7931
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -987,7 +987,7 @@ void bus_notify(struct device *dev, enum bus_notifier_event value)
	subsys_put(sp);
}

struct kset *bus_get_kset(struct bus_type *bus)
struct kset *bus_get_kset(const struct bus_type *bus)
{
	struct subsys_private *sp = bus_to_subsys(bus);
	struct kset *kset;
+1 −1
Original line number Diff line number Diff line
@@ -281,6 +281,6 @@ enum bus_notifier_event {
	BUS_NOTIFY_DRIVER_NOT_BOUND,
};

extern struct kset *bus_get_kset(struct bus_type *bus);
extern struct kset *bus_get_kset(const struct bus_type *bus);

#endif