Input: wacom_w8001 - constify serio_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 19 Aug 2017 00:12:40 +0000 (17:12 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 19 Aug 2017 00:15:41 +0000 (17:15 -0700)
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>
drivers/input/touchscreen/wacom_w8001.c

index 85e95725d0dfe08c4c38fa73097c51236514dff5..3715d1eace9282a6d754d04c84be17f78b0a453c 100644 (file)
@@ -681,7 +681,7 @@ fail1:
        return err;
 }
 
-static struct serio_device_id w8001_serio_ids[] = {
+static const struct serio_device_id w8001_serio_ids[] = {
        {
                .type   = SERIO_RS232,
                .proto  = SERIO_W8001,