diff options
author | Arvind Yadav <[email protected]> | 2017-08-18 17:12:03 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2017-08-18 17:15:36 -0700 |
commit | ef2bc04e74ec502688efb6c3a2b7f21adad61e95 (patch) | |
tree | 472617b2dc3606d0804a3a7d3dbd87f609751ab6 | |
parent | b84704c323456c5d153e82691751dfb67262dd95 (diff) |
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 <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
-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, |