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

Input: iatkbd - 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
af2e7d77 b06bc6b6

+1 -1
+1 -1
drivers/input/keyboard/atkbd.c
··· 1270 1270 return retval; 1271 1271 } 1272 1272 1273 - static struct serio_device_id atkbd_serio_ids[] = { 1273 + static const struct serio_device_id atkbd_serio_ids[] = { 1274 1274 { 1275 1275 .type = SERIO_8042, 1276 1276 .proto = SERIO_ANY,