From: Arvind Yadav Date: Sat, 19 Aug 2017 00:09:21 +0000 (-0700) Subject: Input: hil_kbd - constify serio_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea6aba4b06f1c71e912c817a2f24792f0d971441;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: hil_kbd - constify serio_device_id serio_device_id are not supposed to change at runtime. All functions working with serio_device_id provided by work with const serio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/hil_kbd.c b/drivers/input/keyboard/hil_kbd.c index 5b152f25a8e1..bb29a7c9a1c0 100644 --- a/drivers/input/keyboard/hil_kbd.c +++ b/drivers/input/keyboard/hil_kbd.c @@ -559,7 +559,7 @@ static int hil_dev_connect(struct serio *serio, struct serio_driver *drv) return error; } -static struct serio_device_id hil_dev_ids[] = { +static const struct serio_device_id hil_dev_ids[] = { { .type = SERIO_HIL_MLC, .proto = SERIO_HIL,