aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/i2c/mt9v032.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-13 20:05:17 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-11-17 15:41:33 -0200
commit217bdb0741ff4f2db8a1d52b967101702e8694c1 (patch)
treef32ff085c7f8661ab8be80143498ef5cc03f8a74 /drivers/media/i2c/mt9v032.c
parent[media] atmel-isi: support RGB565 output when sensor output YUV formats (diff)
downloadwireguard-linux-217bdb0741ff4f2db8a1d52b967101702e8694c1.tar.xz
wireguard-linux-217bdb0741ff4f2db8a1d52b967101702e8694c1.zip
[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>
Diffstat (limited to 'drivers/media/i2c/mt9v032.c')
-rw-r--r--drivers/media/i2c/mt9v032.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c
index 553ccdd5ff16..1dbbd23fdfb0 100644
--- a/drivers/media/i2c/mt9v032.c
+++ b/drivers/media/i2c/mt9v032.c
@@ -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,
};