summaryrefslogtreecommitdiff
path: root/drivers/input/serio
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-03-04 02:05:42 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-03-04 02:06:58 +0300
commitfbd5f5008fab2203fa21e82579b9b48a7256b8fd (patch)
tree6a41a01b505f36e34059159717f68dfa22349e6c /drivers/input/serio
parentd1278c91fec3e1d27d6e06d00a67a5a314341344 (diff)
downloadlinux-fbd5f5008fab2203fa21e82579b9b48a7256b8fd.tar.xz
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>
Diffstat (limited to 'drivers/input/serio')
-rw-r--r--drivers/input/serio/serio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c
index 767fc9efb4a8..a8838b522627 100644
--- a/drivers/input/serio/serio.c
+++ b/drivers/input/serio/serio.c
@@ -1007,7 +1007,7 @@ irqreturn_t serio_interrupt(struct serio *serio,
}
EXPORT_SYMBOL(serio_interrupt);
-struct bus_type serio_bus = {
+const struct bus_type serio_bus = {
.name = "serio",
.drv_groups = serio_driver_groups,
.match = serio_bus_match,