summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 03:09:50 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-19 03:15:00 +0300
commit1fa802171fafae9f7a46ced622585692b8588f6d (patch)
tree4ffd988e89d1b0c239bdc8714db9ccad599432a1 /drivers/input
parent9780930ae602982bd1b9859c07b09c800ae12d04 (diff)
downloadlinux-1fa802171fafae9f7a46ced622585692b8588f6d.tar.xz
Input: stowaway - 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/stowaway.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/stowaway.c b/drivers/input/keyboard/stowaway.c
index a6e0d565e306..8b6de9a692dc 100644
--- a/drivers/input/keyboard/stowaway.c
+++ b/drivers/input/keyboard/stowaway.c
@@ -146,7 +146,7 @@ static void skbd_disconnect(struct serio *serio)
kfree(skbd);
}
-static struct serio_device_id skbd_serio_ids[] = {
+static const struct serio_device_id skbd_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_STOWAWAY,