staging: vc04_services: vchiq_arm: make vchiq_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Thu, 8 Feb 2024 19:17:51 +0000 (16:17 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:30:33 +0000 (17:30 +0100)
commit869eb452aed66ac74c0ee7ecd6f9d545b975c676
tree7d25fd24f1ebefd1a9c8f1e6f17724ad06359e7f
parente1f97d7ef608962de2206a8899c6f18dc4f36fdc
staging: vc04_services: vchiq_arm: make vchiq_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the vchiq_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240208-bus_cleanup-staging2-v1-1-cfe906133a2c@marliere.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_bus.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_bus.h