diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-19 03:08:29 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-19 03:14:14 +0300 |
commit | fa0426c6cfdf89726f4e9495d6870f01374459f9 (patch) | |
tree | 8a4d43965e9f6a4c2e81c08dbe731b543ea9c812 /drivers | |
parent | ecfd71af894ab2f0ce24df59232479d4a088ebce (diff) | |
download | linux-fa0426c6cfdf89726f4e9495d6870f01374459f9.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/joystick/stinger.c | 2 |
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, |