summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorJulia Lawall2017-08-08 12:58:29 +0200
committerMauro Carvalho Chehab2017-08-09 16:53:47 +0200
commit65058214f5c2ebe844916b92d1bece64fd00206e (patch)
tree4e80f3877de1cecb5337991f35a8d481a1f2ebf3 /drivers/staging
parentmedia: staging: media: atomisp: remove trailing whitespace (diff)
downloadkernel-qcow2-linux-65058214f5c2ebe844916b92d1bece64fd00206e.tar.gz
kernel-qcow2-linux-65058214f5c2ebe844916b92d1bece64fd00206e.tar.xz
kernel-qcow2-linux-65058214f5c2ebe844916b92d1bece64fd00206e.zip
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/atomisp/i2c/ap1302.c2
-rw-r--r--drivers/staging/media/atomisp/i2c/mt9m114.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/atomisp/i2c/ap1302.c b/drivers/staging/media/atomisp/i2c/ap1302.c
index bacffbe962d4..de687c6fae57 100644
--- a/drivers/staging/media/atomisp/i2c/ap1302.c
+++ b/drivers/staging/media/atomisp/i2c/ap1302.c
@@ -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,
};
diff --git a/drivers/staging/media/atomisp/i2c/mt9m114.c b/drivers/staging/media/atomisp/i2c/mt9m114.c
index 448e072ca037..36a0636a532f 100644
--- a/drivers/staging/media/atomisp/i2c/mt9m114.c
+++ b/drivers/staging/media/atomisp/i2c/mt9m114.c
@@ -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,
};