diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-19 02:09:31 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-19 02:14:21 +0200 |
commit | e87dc8734c251bc0e22c4844323069a18b780cb4 (patch) | |
tree | 3c763ef093491e4e7b27212135d971bf83fb5e37 /drivers/input/keyboard/lkkbd.c | |
parent | Input: hil_kbd - constify serio_device_id (diff) | |
download | linux-e87dc8734c251bc0e22c4844323069a18b780cb4.tar.xz 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, |