projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af2e7d7
)
Input: hil_kbd - constify serio_device_id
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Sat, 19 Aug 2017 00:09:21 +0000
(17:09 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sat, 19 Aug 2017 00:14:20 +0000
(17:14 -0700)
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>
drivers/input/keyboard/hil_kbd.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/hil_kbd.c
b/drivers/input/keyboard/hil_kbd.c
index 5b152f25a8e1ff72e613608f08876b3098627469..bb29a7c9a1c0cf51d81b338834e149ab8555d50d 100644
(file)
--- a/
drivers/input/keyboard/hil_kbd.c
+++ b/
drivers/input/keyboard/hil_kbd.c
@@
-559,7
+559,7
@@
static int hil_dev_connect(struct serio *serio, struct serio_driver *drv)
return error;
}
-static struct serio_device_id hil_dev_ids[] = {
+static
const
struct serio_device_id hil_dev_ids[] = {
{
.type = SERIO_HIL_MLC,
.proto = SERIO_HIL,