mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
media: staging: media: atomisp: constify video_subdev structures
These structures are both 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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
e7d59935d3
commit
65058214f5
2 changed files with 2 additions and 2 deletions
|
@ -1098,7 +1098,7 @@ static const struct v4l2_ctrl_config ctrls[] = {
|
|||
},
|
||||
};
|
||||
|
||||
static struct v4l2_subdev_sensor_ops ap1302_sensor_ops = {
|
||||
static const struct v4l2_subdev_sensor_ops ap1302_sensor_ops = {
|
||||
.g_skip_frames = ap1302_g_skip_frames,
|
||||
};
|
||||
|
||||
|
|
|
@ -1806,7 +1806,7 @@ static const struct v4l2_subdev_video_ops mt9m114_video_ops = {
|
|||
.g_frame_interval = mt9m114_g_frame_interval,
|
||||
};
|
||||
|
||||
static struct v4l2_subdev_sensor_ops mt9m114_sensor_ops = {
|
||||
static const struct v4l2_subdev_sensor_ops mt9m114_sensor_ops = {
|
||||
.g_skip_frames = mt9m114_g_skip_frames,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue