diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 20:10:24 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-18 20:15:08 -0400 |
commit | 0aea22b30f7688b9fad463d98e81608463c2a39d (patch) | |
tree | 78f63e8d9aa194cd37074938cc3a6323ee7f04fb /drivers/input/serio/serio_raw.c | |
parent | e527a87caa5b937917ba7598c472e8a77f0778b7 (diff) |
Input: 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/serio/serio_raw.c')
-rw-r--r-- | drivers/input/serio/serio_raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c index 71ef5d65a0c6..516f9fe77a17 100644 --- a/drivers/input/serio/serio_raw.c +++ b/drivers/input/serio/serio_raw.c | |||
@@ -410,7 +410,7 @@ static void serio_raw_disconnect(struct serio *serio) | |||
410 | serio_set_drvdata(serio, NULL); | 410 | serio_set_drvdata(serio, NULL); |
411 | } | 411 | } |
412 | 412 | ||
413 | static struct serio_device_id serio_raw_serio_ids[] = { | 413 | static const struct serio_device_id serio_raw_serio_ids[] = { |
414 | { | 414 | { |
415 | .type = SERIO_8042, | 415 | .type = SERIO_8042, |
416 | .proto = SERIO_ANY, | 416 | .proto = SERIO_ANY, |