summaryrefslogtreecommitdiff
path: root/include/linux/device
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-13 19:29:06 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-23 13:21:17 +0100
commit00c4a3c47da761b4ba5d09c46b6fc77af5759081 (patch)
treebf78a9484ff4cd2b8af60e4b5aaa952a9462e1a9 /include/linux/device
parent75cff725d9566699a670a02b3cfd1c6e9e9ed53e (diff)
driver core: bus: constantify bus_register()
bus_register() is now safe to take a constant * to bus_type, so make that change and mark the subsys_private bus_type * constant as well. Cc: "Rafael J. Wysocki" <rafael@kernel.org> Link: https://lore.kernel.org/r/20230313182918.1312597-24-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/device')
-rw-r--r--include/linux/device/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device/bus.h b/include/linux/device/bus.h
index 78c875386c06..c30c4748c170 100644
--- a/include/linux/device/bus.h
+++ b/include/linux/device/bus.h
@@ -110,7 +110,7 @@ struct bus_type {
bool need_parent_lock;
};
-extern int __must_check bus_register(struct bus_type *bus);
+extern int __must_check bus_register(const struct bus_type *bus);
extern void bus_unregister(const struct bus_type *bus);