diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 20:11:40 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-18 20:15:32 -0400 |
commit | a012cad6308cad83f71efe8418df417175bb8150 (patch) | |
tree | 04d2feaedfd6aad7077bad0c37b4123809d1ac5a | |
parent | 79308587cf6b303ae73f0bf724ce91b6caeb98da (diff) |
Input: mtouch - 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/touchscreen/mtouch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/mtouch.c b/drivers/input/touchscreen/mtouch.c index 9b5552a26169..a3707fad4d1c 100644 --- a/drivers/input/touchscreen/mtouch.c +++ b/drivers/input/touchscreen/mtouch.c | |||
@@ -178,7 +178,7 @@ static int mtouch_connect(struct serio *serio, struct serio_driver *drv) | |||
178 | * The serio driver structure. | 178 | * The serio driver structure. |
179 | */ | 179 | */ |
180 | 180 | ||
181 | static struct serio_device_id mtouch_serio_ids[] = { | 181 | static const struct serio_device_id mtouch_serio_ids[] = { |
182 | { | 182 | { |
183 | .type = SERIO_RS232, | 183 | .type = SERIO_RS232, |
184 | .proto = SERIO_MICROTOUCH, | 184 | .proto = SERIO_MICROTOUCH, |