forked from luck/tmp_suning_uos_patched
media: vimc: constify video_subdev structures
These structures are all only stored in fields of v4l2_subdev_ops structures, all of which are const, so these structures can be const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
46014f61da
commit
ebf7a6488e
|
@ -373,7 +373,7 @@ static int vimc_deb_s_stream(struct v4l2_subdev *sd, int enable)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct v4l2_subdev_video_ops vimc_deb_video_ops = {
|
||||
static const struct v4l2_subdev_video_ops vimc_deb_video_ops = {
|
||||
.s_stream = vimc_deb_s_stream,
|
||||
};
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ static int vimc_sca_s_stream(struct v4l2_subdev *sd, int enable)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct v4l2_subdev_video_ops vimc_sca_video_ops = {
|
||||
static const struct v4l2_subdev_video_ops vimc_sca_video_ops = {
|
||||
.s_stream = vimc_sca_s_stream,
|
||||
};
|
||||
|
||||
|
|
|
@ -282,7 +282,7 @@ static int vimc_sen_s_stream(struct v4l2_subdev *sd, int enable)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct v4l2_subdev_video_ops vimc_sen_video_ops = {
|
||||
static const struct v4l2_subdev_video_ops vimc_sen_video_ops = {
|
||||
.s_stream = vimc_sen_s_stream,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user