diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 20:11:12 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-18 20:15:28 -0400 |
commit | 7330090429c59894a42c3f750d377e27e371ff07 (patch) | |
tree | 44fd113f55cdbb92040e9a315632fb99ae68d064 | |
parent | 0e2ba64e1e993c3a832a02cf81fc5d4b1a35dd27 (diff) |
Input: gunze - 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/gunze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/gunze.c b/drivers/input/touchscreen/gunze.c index e2ee62615273..481586909d28 100644 --- a/drivers/input/touchscreen/gunze.c +++ b/drivers/input/touchscreen/gunze.c | |||
@@ -162,7 +162,7 @@ static int gunze_connect(struct serio *serio, struct serio_driver *drv) | |||
162 | * The serio driver structure. | 162 | * The serio driver structure. |
163 | */ | 163 | */ |
164 | 164 | ||
165 | static struct serio_device_id gunze_serio_ids[] = { | 165 | static const struct serio_device_id gunze_serio_ids[] = { |
166 | { | 166 | { |
167 | .type = SERIO_RS232, | 167 | .type = SERIO_RS232, |
168 | .proto = SERIO_GUNZE, | 168 | .proto = SERIO_GUNZE, |