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

Input: sunkbd - 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
1966e005 1fa80217

+1 -1
+1 -1
drivers/input/keyboard/sunkbd.c
··· 339 339 kfree(sunkbd); 340 340 } 341 341 342 - static struct serio_device_id sunkbd_serio_ids[] = { 342 + static const struct serio_device_id sunkbd_serio_ids[] = { 343 343 { 344 344 .type = SERIO_RS232, 345 345 .proto = SERIO_SUNKBD,