mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-08 22:32:55 +00:00
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:
parent
bc8b793101
commit
f91482be9b
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user