summaryrefslogtreecommitdiff
path: root/drivers/input/tablet/wacom_serial4.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 03:10:33 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-19 03:15:09 +0300
commita7082ac4705b5abd8a61db4b1650765919cc718b (patch)
tree9b4294457229f658f4a23c585e3c03ad811d42f2 /drivers/input/tablet/wacom_serial4.c
parent0aea22b30f7688b9fad463d98e81608463c2a39d (diff)
downloadlinux-a7082ac4705b5abd8a61db4b1650765919cc718b.tar.xz
Input: wacom_serial4 - 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/tablet/wacom_serial4.c')
-rw-r--r--drivers/input/tablet/wacom_serial4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_serial4.c b/drivers/input/tablet/wacom_serial4.c
index 20ab802461e7..38bfaca48eab 100644
--- a/drivers/input/tablet/wacom_serial4.c
+++ b/drivers/input/tablet/wacom_serial4.c
@@ -594,7 +594,7 @@ free_device:
return err;
}
-static struct serio_device_id wacom_serio_ids[] = {
+static const struct serio_device_id wacom_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_WACOM_IV,