提交 65058214 编写于 作者: J Julia Lawall 提交者: Mauro Carvalho Chehab

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: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 e7d59935
......@@ -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,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册