media: ov5645: constify v4l2_ctrl_ops structure

The v4l2_ctrl_ops structure is only passed as the second argument to
functions such as v4l2_ctrl_new_std for which the corresponding
parameter is const, so make the v4l2_ctrl_ops structure const as well.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Julia Lawall 2018-10-27 08:16:40 -04:00 коммит произвёл Mauro Carvalho Chehab
Родитель 35629182eb
Коммит d148b85e8b
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -886,7 +886,7 @@ static int ov5645_s_ctrl(struct v4l2_ctrl *ctrl)
return ret;
}
static struct v4l2_ctrl_ops ov5645_ctrl_ops = {
static const struct v4l2_ctrl_ops ov5645_ctrl_ops = {
.s_ctrl = ov5645_s_ctrl,
};