Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Arvind Yadav and committed by
Dmitry Torokhov
ea6aba4b af2e7d77

+1 -1
+1 -1
drivers/input/keyboard/hil_kbd.c
··· 559 559 return error; 560 560 } 561 561 562 - static struct serio_device_id hil_dev_ids[] = { 562 + static const struct serio_device_id hil_dev_ids[] = { 563 563 { 564 564 .type = SERIO_HIL_MLC, 565 565 .proto = SERIO_HIL,