From: Arvind Yadav Date: Thu, 17 Aug 2017 11:56:24 +0000 (-0400) Subject: media: usb: rainshadow-cec: constify serio_device_id X-Git-Tag: v4.14-rc6~35^2~257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52471f6705b92054e73ee547a871797db076e716;p=platform%2Fkernel%2Flinux-rpi.git 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 work with const serio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/rainshadow-cec/rainshadow-cec.c b/drivers/media/usb/rainshadow-cec/rainshadow-cec.c index 6f9681c..cecdcbc 100644 --- a/drivers/media/usb/rainshadow-cec/rainshadow-cec.c +++ b/drivers/media/usb/rainshadow-cec/rainshadow-cec.c @@ -358,7 +358,7 @@ free_device: return err; } -static struct serio_device_id rain_serio_ids[] = { +static const struct serio_device_id rain_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_RAINSHADOW_CEC,