From: Arvind Yadav Date: Thu, 17 Aug 2017 11:56:24 +0000 (-0400) Subject: media: usb: rainshadow-cec: constify serio_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52471f6705b92054e73ee547a871797db076e716;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 6f9681c995a4..cecdcbcd400c 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,