diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-19 02:11:12 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-19 02:15:28 +0200 |
commit | 7330090429c59894a42c3f750d377e27e371ff07 (patch) | |
tree | 44fd113f55cdbb92040e9a315632fb99ae68d064 /drivers/input/touchscreen | |
parent | Input: fujitsu_ts - constify serio_device_id (diff) | |
download | linux-7330090429c59894a42c3f750d377e27e371ff07.tar.xz linux-7330090429c59894a42c3f750d377e27e371ff07.zip |
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>
Diffstat (limited to '')
-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) * The serio driver structure. */ -static struct serio_device_id gunze_serio_ids[] = { +static const struct serio_device_id gunze_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_GUNZE, |