diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-19 03:12:03 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-19 03:15:36 +0300 |
commit | ef2bc04e74ec502688efb6c3a2b7f21adad61e95 (patch) | |
tree | 472617b2dc3606d0804a3a7d3dbd87f609751ab6 /drivers/input/touchscreen/touchright.c | |
parent | b84704c323456c5d153e82691751dfb67262dd95 (diff) | |
download | linux-ef2bc04e74ec502688efb6c3a2b7f21adad61e95.tar.xz |
Input: touchright - 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/touchright.c')
-rw-r--r-- | drivers/input/touchscreen/touchright.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/touchright.c b/drivers/input/touchscreen/touchright.c index 4000e5205407..45c325c33f21 100644 --- a/drivers/input/touchscreen/touchright.c +++ b/drivers/input/touchscreen/touchright.c @@ -152,7 +152,7 @@ static int tr_connect(struct serio *serio, struct serio_driver *drv) * The serio driver structure. */ -static struct serio_device_id tr_serio_ids[] = { +static const struct serio_device_id tr_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_TOUCHRIGHT, |