projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5795233
)
Input: wacom_w8001 - constify serio_device_id
author
Arvind Yadav
<
[email protected]
>
Sat, 19 Aug 2017 00:12:40 +0000
(17:12 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Sat, 19 Aug 2017 00:15:41 +0000
(17:15 -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 <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/wacom_w8001.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/wacom_w8001.c
b/drivers/input/touchscreen/wacom_w8001.c
index 85e95725d0dfe08c4c38fa73097c51236514dff5..3715d1eace9282a6d754d04c84be17f78b0a453c 100644
(file)
--- a/
drivers/input/touchscreen/wacom_w8001.c
+++ b/
drivers/input/touchscreen/wacom_w8001.c
@@
-681,7
+681,7
@@
fail1:
return err;
}
-static struct serio_device_id w8001_serio_ids[] = {
+static
const
struct serio_device_id w8001_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_W8001,