summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-18 17:12:29 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-18 17:15:40 -0700
commit57952335feb04abcaecb14c641fe106da749d447 (patch)
treec5ac6c90654b5b0be1228c03bbe57ba26ab0bb1d /drivers/input
parenta110a953bbe3ee338301fdd30783a2a8033bff11 (diff)
downloadop-kernel-dev-57952335feb04abcaecb14c641fe106da749d447.zip
op-kernel-dev-57952335feb04abcaecb14c641fe106da749d447.tar.gz
Input: tsc40 - 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')
-rw-r--r--drivers/input/touchscreen/tsc40.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/tsc40.c b/drivers/input/touchscreen/tsc40.c
index 2968787..d4ae4ba 100644
--- a/drivers/input/touchscreen/tsc40.c
+++ b/drivers/input/touchscreen/tsc40.c
@@ -141,7 +141,7 @@ static void tsc_disconnect(struct serio *serio)
serio_set_drvdata(serio, NULL);
}
-static struct serio_device_id tsc_serio_ids[] = {
+static const struct serio_device_id tsc_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_TSC40,
OpenPOWER on IntegriCloud