From: Andrey Utkin Date: Mon, 12 Sep 2016 23:02:38 +0000 (-0300) Subject: [media] tw5864: constify struct video_device template X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4011b69ab329cc0d238d4dc530ab870c566c566;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] tw5864: constify struct video_device template tw5864_video_template is used for filling of actual video_device structures. It is copied by value, and is not used for anything else. Signed-off-by: Andrey Utkin Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/tw5864/tw5864-video.c b/drivers/media/pci/tw5864/tw5864-video.c index 7401b64b1784..652a059b2e0a 100644 --- a/drivers/media/pci/tw5864/tw5864-video.c +++ b/drivers/media/pci/tw5864/tw5864-video.c @@ -912,7 +912,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = { #endif }; -static struct video_device tw5864_video_template = { +static const struct video_device tw5864_video_template = { .name = "tw5864_video", .fops = &video_fops, .ioctl_ops = &video_ioctl_ops,