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
|
@ -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 New Issue