diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 20:11:20 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-18 20:15:30 -0400 |
commit | 9c4f4ba74558a38dc0956fdecd98ee8279a41231 (patch) | |
tree | f7e9d6fc1c76ecdb2e6fe5e52206daaed82b3155 | |
parent | 7330090429c59894a42c3f750d377e27e371ff07 (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>
-rw-r--r-- | drivers/input/touchscreen/hampshire.c | 2 |
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) | |||
163 | * The serio driver structure. | 163 | * The serio driver structure. |
164 | */ | 164 | */ |
165 | 165 | ||
166 | static struct serio_device_id hampshire_serio_ids[] = { | 166 | static const struct serio_device_id hampshire_serio_ids[] = { |
167 | { | 167 | { |
168 | .type = SERIO_RS232, | 168 | .type = SERIO_RS232, |
169 | .proto = SERIO_HAMPSHIRE, | 169 | .proto = SERIO_HAMPSHIRE, |