summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 02:10:33 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-19 02:15:09 +0200
commita7082ac4705b5abd8a61db4b1650765919cc718b (patch)
tree9b4294457229f658f4a23c585e3c03ad811d42f2
parentInput: constify serio_device_id (diff)
downloadlinux-a7082ac4705b5abd8a61db4b1650765919cc718b.tar.xz
linux-a7082ac4705b5abd8a61db4b1650765919cc718b.zip
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>
-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,