summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/touchit213.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-18 17:11:56 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-18 17:15:35 -0700
commitb84704c323456c5d153e82691751dfb67262dd95 (patch)
tree8d1e4901f52eda882d89c8c9847b21defbc69c47 /drivers/input/touchscreen/touchit213.c
parentbb5da0d3c0a77f81aca782311464fc4f71b4570d (diff)
Input: touchit213 - 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/touchit213.c')
-rw-r--r--drivers/input/touchscreen/touchit213.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/touchit213.c b/drivers/input/touchscreen/touchit213.c
index c27cf8f3d1ca..98a16698be8e 100644
--- a/drivers/input/touchscreen/touchit213.c
+++ b/drivers/input/touchscreen/touchit213.c
@@ -192,7 +192,7 @@ static int touchit213_connect(struct serio *serio, struct serio_driver *drv)
* The serio driver structure.
*/
-static struct serio_device_id touchit213_serio_ids[] = {
+static const struct serio_device_id touchit213_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_TOUCHIT213,