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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Greg Kroah-Hartman 2023-02-08 12:13:28 +01:00
parent bc8b793101
commit f91482be9b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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