summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 03:09:31 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-19 03:14:21 +0300
commite87dc8734c251bc0e22c4844323069a18b780cb4 (patch)
tree3c763ef093491e4e7b27212135d971bf83fb5e37 /drivers/input
parentea6aba4b06f1c71e912c817a2f24792f0d971441 (diff)
downloadlinux-e87dc8734c251bc0e22c4844323069a18b780cb4.tar.xz
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')
-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,