summaryrefslogtreecommitdiffstats
path: root/drivers/base/bus.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-08 12:13:28 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-09 10:43:41 +0100
commitf91482be9b480dfce2616f5ba3fa548b8ed41efb (patch)
tree1cdc5c3abb50fdc93c887431e92aff9a46295e2e /drivers/base/bus.c
parentdriver core: bus: constify bus_register/unregister_notifier() (diff)
downloadlinux-f91482be9b480dfce2616f5ba3fa548b8ed41efb.tar.xz
linux-f91482be9b480dfce2616f5ba3fa548b8ed41efb.zip
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>
Diffstat (limited to 'drivers/base/bus.c')
-rw-r--r--drivers/base/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 0920fb117896..c394727b8253 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -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;