media: radio: make video_device const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 26 Aug 2017 08:43:43 +0000 (04:43 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 27 Aug 2017 12:47:20 +0000 (08:47 -0400)
Make these const as they are only used in a copy operation.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/radio/radio-tea5764.c
drivers/media/radio/radio-wl1273.c
drivers/media/radio/si4713/radio-platform-si4713.c
drivers/media/radio/wl128x/fmdrv_v4l2.c

index 9db8331a0c758dd5f4b0e8618b4833d389c8ab3c..bc7e69e7e32e10efa2e12d019d5dcb8628a6939c 100644 (file)
@@ -414,7 +414,7 @@ static const struct v4l2_ioctl_ops tea5764_ioctl_ops = {
 };
 
 /* V4L2 interface */
-static struct video_device tea5764_radio_template = {
+static const struct video_device tea5764_radio_template = {
        .name           = "TEA5764 FM-Radio",
        .fops           = &tea5764_fops,
        .ioctl_ops      = &tea5764_ioctl_ops,
index 17e82a9a01099bf6cc5f01b2ce4ab08a0f6b23a8..903fcd5e99c07e3928c0ddf658cf146cc0a568e6 100644 (file)
@@ -1982,7 +1982,7 @@ static const struct v4l2_ioctl_ops wl1273_ioctl_ops = {
        .vidioc_log_status      = wl1273_fm_vidioc_log_status,
 };
 
-static struct video_device wl1273_viddev_template = {
+static const struct video_device wl1273_viddev_template = {
        .fops                   = &wl1273_fops,
        .ioctl_ops              = &wl1273_ioctl_ops,
        .name                   = WL1273_FM_DRIVER_NAME,
index 6f93ef1249a6a2ada6989de6dc8bad0743289c03..27339ec495f603b87481cef5958b5c7c4c7e6ada 100644 (file)
@@ -135,7 +135,7 @@ static struct v4l2_ioctl_ops radio_si4713_ioctl_ops = {
 };
 
 /* radio_si4713_vdev_template - video device interface */
-static struct video_device radio_si4713_vdev_template = {
+static const struct video_device radio_si4713_vdev_template = {
        .fops                   = &radio_si4713_fops,
        .name                   = "radio-si4713",
        .release                = video_device_release_empty,
index 71423f45c05c2f2c9eb966f7e1dab03ff5c01df5..fc5a7abc83d233849bfead5adb70a13b7415a998 100644 (file)
@@ -509,7 +509,7 @@ static const struct v4l2_ioctl_ops fm_drv_ioctl_ops = {
 };
 
 /* V4L2 RADIO device parent structure */
-static struct video_device fm_viddev_template = {
+static const struct video_device fm_viddev_template = {
        .fops = &fm_drv_fops,
        .ioctl_ops = &fm_drv_ioctl_ops,
        .name = FM_DRV_NAME,