summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-18 17:08:29 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-18 17:14:14 -0700
commitfa0426c6cfdf89726f4e9495d6870f01374459f9 (patch)
tree8a4d43965e9f6a4c2e81c08dbe731b543ea9c812
parentecfd71af894ab2f0ce24df59232479d4a088ebce (diff)
downloadlinux-fa0426c6cfdf89726f4e9495d6870f01374459f9.tar.bz2
Input: stinger - 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>
-rw-r--r--drivers/input/joystick/stinger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/stinger.c b/drivers/input/joystick/stinger.c
index 099c6d7b5e08..cb10e7b097ae 100644
--- a/drivers/input/joystick/stinger.c
+++ b/drivers/input/joystick/stinger.c
@@ -184,7 +184,7 @@ static int stinger_connect(struct serio *serio, struct serio_driver *drv)
* The serio driver structure.
*/
-static struct serio_device_id stinger_serio_ids[] = {
+static const struct serio_device_id stinger_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_STINGER,