diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 17:10:33 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-18 17:15:09 -0700 |
commit | a7082ac4705b5abd8a61db4b1650765919cc718b (patch) | |
tree | 9b4294457229f658f4a23c585e3c03ad811d42f2 /drivers/input | |
parent | 0aea22b30f7688b9fad463d98e81608463c2a39d (diff) | |
download | linux-a7082ac4705b5abd8a61db4b1650765919cc718b.tar.gz linux-a7082ac4705b5abd8a61db4b1650765919cc718b.tar.bz2 linux-a7082ac4705b5abd8a61db4b1650765919cc718b.zip |
Input: wacom_serial4 - 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')
-rw-r--r-- | drivers/input/tablet/wacom_serial4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_serial4.c b/drivers/input/tablet/wacom_serial4.c index 20ab802461e7..38bfaca48eab 100644 --- a/drivers/input/tablet/wacom_serial4.c +++ b/drivers/input/tablet/wacom_serial4.c @@ -594,7 +594,7 @@ free_device: return err; } -static struct serio_device_id wacom_serio_ids[] = { +static const struct serio_device_id wacom_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_WACOM_IV, |