summaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/lkkbd.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 02:09:31 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-19 02:14:21 +0200
commite87dc8734c251bc0e22c4844323069a18b780cb4 (patch)
tree3c763ef093491e4e7b27212135d971bf83fb5e37 /drivers/input/keyboard/lkkbd.c
parentInput: hil_kbd - constify serio_device_id (diff)
downloadlinux-e87dc8734c251bc0e22c4844323069a18b780cb4.tar.xz
linux-e87dc8734c251bc0e22c4844323069a18b780cb4.zip
Input: lkkbd - constify serio_device_id
serio_device_id are not supposed to change at runtime. All functions working with serio_device_id provided by <linux/serio.h> work with const serio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/lkkbd.c')
-rw-r--r--drivers/input/keyboard/lkkbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/lkkbd.c b/drivers/input/keyboard/lkkbd.c
index 9fcd9f1d5dc8..471d53815c6d 100644
--- a/drivers/input/keyboard/lkkbd.c
+++ b/drivers/input/keyboard/lkkbd.c
@@ -707,7 +707,7 @@ static void lkkbd_disconnect(struct serio *serio)
kfree(lk);
}
-static struct serio_device_id lkkbd_serio_ids[] = {
+static const struct serio_device_id lkkbd_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_LKKBD,