Input: synaptics-rmi4 - make rmi_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 3 Mar 2024 23:05:23 +0000 (15:05 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 3 Mar 2024 23:06:58 +0000 (15:06 -0800)
commitd1278c91fec3e1d27d6e06d00a67a5a314341344
treea85c6070a853af1d935c5ca27aba4348b4652961
parentd49193be636ab2b6e35727541bbdcdc1eab2d676
Input: synaptics-rmi4 - make rmi_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the variable rmi_bus_type 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/20240210-bus_cleanup-input2-v1-1-0daef7e034e0@marliere.net
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_bus.c
drivers/input/rmi4/rmi_bus.h