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:
Julia Lawall 2017-08-08 06:58:29 -04:00 коммит произвёл Mauro Carvalho Chehab
Родитель e7d59935d3
Коммит 65058214f5
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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,
};