mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
media: radio: make video_device const
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>
This commit is contained in:
parent
47bdf7c6d6
commit
96cc6956c6
4 changed files with 4 additions and 4 deletions
|
@ -414,7 +414,7 @@ static const struct v4l2_ioctl_ops tea5764_ioctl_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* V4L2 interface */
|
/* V4L2 interface */
|
||||||
static struct video_device tea5764_radio_template = {
|
static const struct video_device tea5764_radio_template = {
|
||||||
.name = "TEA5764 FM-Radio",
|
.name = "TEA5764 FM-Radio",
|
||||||
.fops = &tea5764_fops,
|
.fops = &tea5764_fops,
|
||||||
.ioctl_ops = &tea5764_ioctl_ops,
|
.ioctl_ops = &tea5764_ioctl_ops,
|
||||||
|
|
|
@ -1982,7 +1982,7 @@ static const struct v4l2_ioctl_ops wl1273_ioctl_ops = {
|
||||||
.vidioc_log_status = wl1273_fm_vidioc_log_status,
|
.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,
|
.fops = &wl1273_fops,
|
||||||
.ioctl_ops = &wl1273_ioctl_ops,
|
.ioctl_ops = &wl1273_ioctl_ops,
|
||||||
.name = WL1273_FM_DRIVER_NAME,
|
.name = WL1273_FM_DRIVER_NAME,
|
||||||
|
|
|
@ -135,7 +135,7 @@ static struct v4l2_ioctl_ops radio_si4713_ioctl_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* radio_si4713_vdev_template - video device interface */
|
/* 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,
|
.fops = &radio_si4713_fops,
|
||||||
.name = "radio-si4713",
|
.name = "radio-si4713",
|
||||||
.release = video_device_release_empty,
|
.release = video_device_release_empty,
|
||||||
|
|
|
@ -509,7 +509,7 @@ static const struct v4l2_ioctl_ops fm_drv_ioctl_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* V4L2 RADIO device parent structure */
|
/* V4L2 RADIO device parent structure */
|
||||||
static struct video_device fm_viddev_template = {
|
static const struct video_device fm_viddev_template = {
|
||||||
.fops = &fm_drv_fops,
|
.fops = &fm_drv_fops,
|
||||||
.ioctl_ops = &fm_drv_ioctl_ops,
|
.ioctl_ops = &fm_drv_ioctl_ops,
|
||||||
.name = FM_DRV_NAME,
|
.name = FM_DRV_NAME,
|
||||||
|
|
Loading…
Reference in a new issue