summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/hampshire.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-18 17:11:20 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-18 17:15:30 -0700
commit9c4f4ba74558a38dc0956fdecd98ee8279a41231 (patch)
treef7e9d6fc1c76ecdb2e6fe5e52206daaed82b3155 /drivers/input/touchscreen/hampshire.c
parent7330090429c59894a42c3f750d377e27e371ff07 (diff)
Input: hampshire - 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/hampshire.c')
-rw-r--r--drivers/input/touchscreen/hampshire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/hampshire.c b/drivers/input/touchscreen/hampshire.c
index ecb1e0e01328..eb052d559e54 100644
--- a/drivers/input/touchscreen/hampshire.c
+++ b/drivers/input/touchscreen/hampshire.c
@@ -163,7 +163,7 @@ static int hampshire_connect(struct serio *serio, struct serio_driver *drv)
* The serio driver structure.
*/
-static struct serio_device_id hampshire_serio_ids[] = {
+static const struct serio_device_id hampshire_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_HAMPSHIRE,