linux-stable/include/linux/device
Greg Kroah-Hartman c28dd08ef7 driver core: make the bus_type in struct device_driver constant
The pointer to struct bus_type in struct device_driver should only be
pointing to something that can never change now that the driver core has
fixed up the previously writable fields.  So mark it as a constant
pointer to enforce this and move forward with the goal of moving
bus_type into read-only memory.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230313182918.1312597-28-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-23 13:21:26 +01:00
..
bus.h driver core: bus: constify bus_rescan_devices() 2023-03-23 13:21:20 +01:00
class.h driver core: class: make class_create/remove_file*() options const 2023-03-17 15:16:41 +01:00
driver.h driver core: make the bus_type in struct device_driver constant 2023-03-23 13:21:26 +01:00