mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
[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:
parent
05645a46a1
commit
217bdb0741
@ -671,7 +671,7 @@ static int mt9m032_set_ctrl(struct v4l2_ctrl *ctrl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct v4l2_ctrl_ops mt9m032_ctrl_ops = {
|
||||
static const struct v4l2_ctrl_ops mt9m032_ctrl_ops = {
|
||||
.s_ctrl = mt9m032_set_ctrl,
|
||||
.try_ctrl = mt9m032_try_ctrl,
|
||||
};
|
||||
|
@ -817,7 +817,7 @@ static int mt9p031_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct v4l2_ctrl_ops mt9p031_ctrl_ops = {
|
||||
static const struct v4l2_ctrl_ops mt9p031_ctrl_ops = {
|
||||
.s_ctrl = mt9p031_s_ctrl,
|
||||
};
|
||||
|
||||
|
@ -626,7 +626,7 @@ static int mt9t001_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct v4l2_ctrl_ops mt9t001_ctrl_ops = {
|
||||
static const struct v4l2_ctrl_ops mt9t001_ctrl_ops = {
|
||||
.s_ctrl = mt9t001_s_ctrl,
|
||||
};
|
||||
|
||||
|
@ -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,
|
||||
};
|
||||
|
||||
|
@ -703,7 +703,7 @@ static int mt9v032_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct v4l2_ctrl_ops mt9v032_ctrl_ops = {
|
||||
static const struct v4l2_ctrl_ops mt9v032_ctrl_ops = {
|
||||
.s_ctrl = mt9v032_s_ctrl,
|
||||
};
|
||||
|
||||
|
@ -1249,7 +1249,7 @@ static int ov2659_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct v4l2_ctrl_ops ov2659_ctrl_ops = {
|
||||
static const struct v4l2_ctrl_ops ov2659_ctrl_ops = {
|
||||
.s_ctrl = ov2659_s_ctrl,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user