aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArvind Yadav2017-08-18 17:09:14 -0700
committerDmitry Torokhov2017-08-18 17:14:19 -0700
commitaf2e7d77957afdf08f7e12a1d1e24f51eb51c7db (patch)
tree42d4f6e32178093900421aa4e5c6a9317c328ec2
parentb06bc6b6bf8cf68daca123ddcc3391ef08411f58 (diff)
Input: iatkbd - 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/keyboard/atkbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index ec876b5b1382..7e75835e220f 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -1270,7 +1270,7 @@ static int atkbd_reconnect(struct serio *serio)
return retval;
}
-static struct serio_device_id atkbd_serio_ids[] = {
+static const struct serio_device_id atkbd_serio_ids[] = {
{
.type = SERIO_8042,
.proto = SERIO_ANY,