From: Bhumika Goyal Date: Sat, 26 Aug 2017 11:32:53 +0000 (-0400) Subject: media: Staging: media: radio-bcm2048: make video_device const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b104729e12aeecc818144d95e3d600c5f276a0c2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git media: Staging: media: radio-bcm2048: make video_device const Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c index 86d7fc20f237..58adaea44eb5 100644 --- a/drivers/staging/media/bcm2048/radio-bcm2048.c +++ b/drivers/staging/media/bcm2048/radio-bcm2048.c @@ -2564,7 +2564,7 @@ static const struct v4l2_ioctl_ops bcm2048_ioctl_ops = { /* * bcm2048_viddev_template - video device interface */ -static struct video_device bcm2048_viddev_template = { +static const struct video_device bcm2048_viddev_template = { .fops = &bcm2048_fops, .name = BCM2048_DRIVER_NAME, .release = video_device_release_empty,