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>
This commit is contained in:
Greg Kroah-Hartman
2023-03-13 19:29:06 +01:00
parent 75cff725d9
commit 00c4a3c47d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);