Commit 82fad476 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Mauro Carvalho Chehab

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 0dd70541
...@@ -749,7 +749,7 @@ static const struct v4l2_ioctl_ops si470x_ioctl_ops = { ...@@ -749,7 +749,7 @@ static const struct v4l2_ioctl_ops si470x_ioctl_ops = {
/* /*
* si470x_viddev_template - video device interface * si470x_viddev_template - video device interface
*/ */
struct video_device si470x_viddev_template = { const struct video_device si470x_viddev_template = {
.fops = &si470x_fops, .fops = &si470x_fops,
.name = DRIVER_NAME, .name = DRIVER_NAME,
.release = video_device_release_empty, .release = video_device_release_empty,
......
...@@ -209,7 +209,7 @@ struct si470x_device { ...@@ -209,7 +209,7 @@ struct si470x_device {
/************************************************************************** /**************************************************************************
* Common Functions * Common Functions
**************************************************************************/ **************************************************************************/
extern struct video_device si470x_viddev_template; extern const struct video_device si470x_viddev_template;
extern const struct v4l2_ctrl_ops si470x_ctrl_ops; extern const struct v4l2_ctrl_ops si470x_ctrl_ops;
int si470x_get_register(struct si470x_device *radio, int regnr); int si470x_get_register(struct si470x_device *radio, int regnr);
int si470x_set_register(struct si470x_device *radio, int regnr); int si470x_set_register(struct si470x_device *radio, int regnr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment