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

media: usb: rainshadow-cec: 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Arvind Yadav and committed by
Mauro Carvalho Chehab
52471f67 21b36756

+1 -1
+1 -1
drivers/media/usb/rainshadow-cec/rainshadow-cec.c
··· 358 358 return err; 359 359 } 360 360 361 - static struct serio_device_id rain_serio_ids[] = { 361 + static const struct serio_device_id rain_serio_ids[] = { 362 362 { 363 363 .type = SERIO_RS232, 364 364 .proto = SERIO_RAINSHADOW_CEC,