summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/fujitsu_ts.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 02:11:04 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-19 02:15:19 +0200
commit0e2ba64e1e993c3a832a02cf81fc5d4b1a35dd27 (patch)
tree3a7386290bcdc81fec37f7b2e4be3c1e020c049b /drivers/input/touchscreen/fujitsu_ts.c
parentInput: elo - constify serio_device_id (diff)
downloadlinux-0e2ba64e1e993c3a832a02cf81fc5d4b1a35dd27.tar.xz
linux-0e2ba64e1e993c3a832a02cf81fc5d4b1a35dd27.zip
Input: fujitsu_ts - 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/touchscreen/fujitsu_ts.c')
-rw-r--r--drivers/input/touchscreen/fujitsu_ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/fujitsu_ts.c b/drivers/input/touchscreen/fujitsu_ts.c
index d0e46a7e183b..a0fbb454499d 100644
--- a/drivers/input/touchscreen/fujitsu_ts.c
+++ b/drivers/input/touchscreen/fujitsu_ts.c
@@ -151,7 +151,7 @@ static int fujitsu_connect(struct serio *serio, struct serio_driver *drv)
/*
* The serio driver structure.
*/
-static struct serio_device_id fujitsu_serio_ids[] = {
+static const struct serio_device_id fujitsu_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_FUJITSU,