Input: gameport - make gameport_bus const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 4 Feb 2024 19:56:34 +0000 (16:56 -0300)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 6 Feb 2024 21:57:02 +0000 (13:57 -0800)
commitd03f030115fe930de1222fef294730ba21b93045
tree6a82c39b41087a10a0b159e4fe8c7ef05589b2ff
parent7d0f351da46098b3bbb147f886f059473b84ff48
Input: gameport - make gameport_bus const

Now that the driver core can properly handle constant struct bus_type,
move the gameport_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>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240204-bus_cleanup-input-v1-1-74c2438801cf@marliere.net
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/gameport/gameport.c