diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 17:09:31 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-18 17:14:21 -0700 |
commit | e87dc8734c251bc0e22c4844323069a18b780cb4 (patch) | |
tree | 3c763ef093491e4e7b27212135d971bf83fb5e37 /drivers/input/keyboard/lkkbd.c | |
parent | ea6aba4b06f1c71e912c817a2f24792f0d971441 (diff) | |
download | blackbird-op-linux-e87dc8734c251bc0e22c4844323069a18b780cb4.tar.gz blackbird-op-linux-e87dc8734c251bc0e22c4844323069a18b780cb4.zip |
Input: lkkbd - 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/keyboard/lkkbd.c')
-rw-r--r-- | drivers/input/keyboard/lkkbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/lkkbd.c b/drivers/input/keyboard/lkkbd.c index 9fcd9f1d5dc8..471d53815c6d 100644 --- a/drivers/input/keyboard/lkkbd.c +++ b/drivers/input/keyboard/lkkbd.c @@ -707,7 +707,7 @@ static void lkkbd_disconnect(struct serio *serio) kfree(lk); } -static struct serio_device_id lkkbd_serio_ids[] = { +static const struct serio_device_id lkkbd_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_LKKBD, |