[media] i2c: constify v4l2_ctrl_ops structures
These v4l2_ctrl_ops structures are never modified, like all the other v4l2_ctrl_ops structures, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

کامیت شده توسط
Mauro Carvalho Chehab

والد
05645a46a1
کامیت
217bdb0741
@@ -454,7 +454,7 @@ static int mt9v011_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct v4l2_ctrl_ops mt9v011_ctrl_ops = {
|
||||
static const struct v4l2_ctrl_ops mt9v011_ctrl_ops = {
|
||||
.s_ctrl = mt9v011_s_ctrl,
|
||||
};
|
||||
|
||||
|
مرجع در شماره جدید
Block a user