staging: fieldbus: make anybus_bus const
authorRicardo B. Marliere <ricardo@marliere.net>
Sat, 3 Feb 2024 18:11:35 +0000 (15:11 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:30:30 +0000 (17:30 +0100)
commite1f97d7ef608962de2206a8899c6f18dc4f36fdc
treece919756386aa3618d8affa1262cc3cad81e92e7
parentcfd87832dfa1b69069d3e6c598044a5568e1a1ef
staging: fieldbus: make anybus_bus const

Now that the driver core can properly handle constant struct bus_type,
move the anybus_bus 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/20240203-bus_cleanup-staging-v1-1-a13448ddb4c7@marliere.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fieldbus/anybuss/host.c