USB: mark all struct bus_type as const
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Mar 2023 18:29:18 +0000 (19:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2023 12:22:00 +0000 (13:22 +0100)
commit9d11b13402d1b80f7f3ca5061d75f15cf8002555
treea03887881199fc63e4847f6c2f5ec5c43963455a
parentd492cc2573a08352c48a66d3e3f312a15fb3f363
USB: mark all struct bus_type as const

Now that the driver core can properly handle constant struct bus_type,
move all of the USB subsystem struct bus_type structures as const,
placing them into read-only memory which can not be modified at runtime.

Cc: Johan Hovold <johan@kernel.org>
Cc: Evan Green <evgreen@chromium.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-usb@vger.kernel.org
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230313182918.1312597-36-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/ulpi.c
drivers/usb/core/driver.c
drivers/usb/core/usb.h
drivers/usb/gadget/udc/core.c
drivers/usb/serial/bus.c
drivers/usb/typec/bus.c
drivers/usb/typec/bus.h
include/linux/usb/serial.h