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

Input: lkkbd - 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
e87dc873 ea6aba4b

+1 -1
+1 -1
drivers/input/keyboard/lkkbd.c
··· 707 707 kfree(lk); 708 708 } 709 709 710 - static struct serio_device_id lkkbd_serio_ids[] = { 710 + static const struct serio_device_id lkkbd_serio_ids[] = { 711 711 { 712 712 .type = SERIO_RS232, 713 713 .proto = SERIO_LKKBD,