media: zoran: make zoran_template const

Make this const as it is only used in a copy operation in the file
referencing it. Make the declaration const too.

Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
Bhumika Goyal 2017-09-27 16:16:47 +02:00 committed by Mauro Carvalho Chehab
parent b145ef4f79
commit 9676593c90
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ extern int zr36067_debug;
/* Anybody who uses more than four? */ /* Anybody who uses more than four? */
#define BUZ_MAX 4 #define BUZ_MAX 4
extern struct video_device zoran_template; extern const struct video_device zoran_template;
extern int zoran_check_jpg_settings(struct zoran *zr, extern int zoran_check_jpg_settings(struct zoran *zr,
struct zoran_jpg_settings *settings, struct zoran_jpg_settings *settings,

View File

@ -2839,7 +2839,7 @@ static const struct v4l2_file_operations zoran_fops = {
.poll = zoran_poll, .poll = zoran_poll,
}; };
struct video_device zoran_template = { const struct video_device zoran_template = {
.name = ZORAN_NAME, .name = ZORAN_NAME,
.fops = &zoran_fops, .fops = &zoran_fops,
.ioctl_ops = &zoran_ioctl_ops, .ioctl_ops = &zoran_ioctl_ops,