Input: serio - make serio_bus const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 3 Mar 2024 23:05:42 +0000 (15:05 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 3 Mar 2024 23:06:58 +0000 (15:06 -0800)
commitfbd5f5008fab2203fa21e82579b9b48a7256b8fd
tree6a41a01b505f36e34059159717f68dfa22349e6c
parentd1278c91fec3e1d27d6e06d00a67a5a314341344
Input: serio - make serio_bus const

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