diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-09-27 11:38:29 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-10-31 13:38:22 +0300 |
commit | 82fad4762565ccae181c2d5ee332d47456e6ed7f (patch) | |
tree | ff5a4a1d606794e883ba3d31a4e9a6f81fd1d516 /drivers/media/radio/si470x/radio-si470x-common.c | |
parent | 0dd7054129c9b3d54c3716b8e38dcfcb43fe305d (diff) | |
download | linux-82fad4762565ccae181c2d5ee332d47456e6ed7f.tar.xz |
media: radio-si470x: make si470x_viddev_template const
Make this const as it is only used in a copy operation in the files
referencing it. Add const to declaration in the header too.
Structure found using Coccienlle and changes done by hand.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/radio/si470x/radio-si470x-common.c')
-rw-r--r-- | drivers/media/radio/si470x/radio-si470x-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x-common.c b/drivers/media/radio/si470x/radio-si470x-common.c index cd76facc22f5..c89a7d5b8c55 100644 --- a/drivers/media/radio/si470x/radio-si470x-common.c +++ b/drivers/media/radio/si470x/radio-si470x-common.c @@ -749,7 +749,7 @@ static const struct v4l2_ioctl_ops si470x_ioctl_ops = { /* * si470x_viddev_template - video device interface */ -struct video_device si470x_viddev_template = { +const struct video_device si470x_viddev_template = { .fops = &si470x_fops, .name = DRIVER_NAME, .release = video_device_release_empty, |