mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
[media] soc_camera: constify v4l2_subdev_sensor_ops structures
The v4l2_subdev_sensor_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
1dff333853
commit
368a53df02
@ -632,7 +632,7 @@ static struct v4l2_subdev_video_ops mt9m001_subdev_video_ops = {
|
||||
.s_mbus_config = mt9m001_s_mbus_config,
|
||||
};
|
||||
|
||||
static struct v4l2_subdev_sensor_ops mt9m001_subdev_sensor_ops = {
|
||||
static const struct v4l2_subdev_sensor_ops mt9m001_subdev_sensor_ops = {
|
||||
.g_skip_top_lines = mt9m001_g_skip_top_lines,
|
||||
};
|
||||
|
||||
|
@ -728,7 +728,7 @@ static struct v4l2_subdev_video_ops mt9t031_subdev_video_ops = {
|
||||
.s_mbus_config = mt9t031_s_mbus_config,
|
||||
};
|
||||
|
||||
static struct v4l2_subdev_sensor_ops mt9t031_subdev_sensor_ops = {
|
||||
static const struct v4l2_subdev_sensor_ops mt9t031_subdev_sensor_ops = {
|
||||
.g_skip_top_lines = mt9t031_g_skip_top_lines,
|
||||
};
|
||||
|
||||
|
@ -860,7 +860,7 @@ static struct v4l2_subdev_video_ops mt9v022_subdev_video_ops = {
|
||||
.s_mbus_config = mt9v022_s_mbus_config,
|
||||
};
|
||||
|
||||
static struct v4l2_subdev_sensor_ops mt9v022_subdev_sensor_ops = {
|
||||
static const struct v4l2_subdev_sensor_ops mt9v022_subdev_sensor_ops = {
|
||||
.g_skip_top_lines = mt9v022_g_skip_top_lines,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user