diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 20:12:29 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-18 20:15:40 -0400 |
commit | 57952335feb04abcaecb14c641fe106da749d447 (patch) | |
tree | c5ac6c90654b5b0be1228c03bbe57ba26ab0bb1d | |
parent | a110a953bbe3ee338301fdd30783a2a8033bff11 (diff) |
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>
-rw-r--r-- | drivers/input/touchscreen/tsc40.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/tsc40.c b/drivers/input/touchscreen/tsc40.c index 29687872cb94..d4ae4ba84c1f 100644 --- a/drivers/input/touchscreen/tsc40.c +++ b/drivers/input/touchscreen/tsc40.c | |||
@@ -141,7 +141,7 @@ static void tsc_disconnect(struct serio *serio) | |||
141 | serio_set_drvdata(serio, NULL); | 141 | serio_set_drvdata(serio, NULL); |
142 | } | 142 | } |
143 | 143 | ||
144 | static struct serio_device_id tsc_serio_ids[] = { | 144 | static const struct serio_device_id tsc_serio_ids[] = { |
145 | { | 145 | { |
146 | .type = SERIO_RS232, | 146 | .type = SERIO_RS232, |
147 | .proto = SERIO_TSC40, | 147 | .proto = SERIO_TSC40, |