summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 03:09:21 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-19 03:14:20 +0300
commitea6aba4b06f1c71e912c817a2f24792f0d971441 (patch)
tree400fbb8d824a89339005561d9849243b68bdab67 /drivers/input
parentaf2e7d77957afdf08f7e12a1d1e24f51eb51c7db (diff)
downloadlinux-ea6aba4b06f1c71e912c817a2f24792f0d971441.tar.xz
Input: hil_kbd - 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/hil_kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/hil_kbd.c b/drivers/input/keyboard/hil_kbd.c
index 5b152f25a8e1..bb29a7c9a1c0 100644
--- a/drivers/input/keyboard/hil_kbd.c
+++ b/drivers/input/keyboard/hil_kbd.c
@@ -559,7 +559,7 @@ static int hil_dev_connect(struct serio *serio, struct serio_driver *drv)
return error;
}
-static struct serio_device_id hil_dev_ids[] = {
+static const struct serio_device_id hil_dev_ids[] = {
{
.type = SERIO_HIL_MLC,
.proto = SERIO_HIL,