driver core: bus: constantify bus_register()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Mar 2023 18:29:06 +0000 (19:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2023 12:21:17 +0000 (13:21 +0100)
commit00c4a3c47da761b4ba5d09c46b6fc77af5759081
treebf78a9484ff4cd2b8af60e4b5aaa952a9462e1a9
parent75cff725d9566699a670a02b3cfd1c6e9e9ed53e
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>
drivers/base/base.h
drivers/base/bus.c
include/linux/device/bus.h