diff options
| author | Julia Lawall <[email protected]> | 2018-10-27 12:49:05 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-11-23 11:04:32 +0000 |
| commit | da411ab10cc13dde4673608142cbd8c290505235 (patch) | |
| tree | 086a69c563667d741dfb2859fcb909caab6a4772 /drivers/media/platform/vimc/vimc-sensor.c | |
| parent | media: rockchip/rga: constify v4l2_m2m_ops structure (diff) | |
| download | kernel-da411ab10cc13dde4673608142cbd8c290505235.tar.gz kernel-da411ab10cc13dde4673608142cbd8c290505235.zip | |
media: vimc: constify structures stored in fields of v4l2_subdev_ops structure
The fields of a v4l2_subdev_ops structure are all const, so the
structures that are stored there and are not used elsewhere can be
const as well.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <[email protected]>
Acked-by: Helen Koike <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-sensor.c')
| -rw-r--r-- | drivers/media/platform/vimc/vimc-sensor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vimc/vimc-sensor.c b/drivers/media/platform/vimc/vimc-sensor.c index edf4c85ae63d..32ca9c6172b1 100644 --- a/drivers/media/platform/vimc/vimc-sensor.c +++ b/drivers/media/platform/vimc/vimc-sensor.c @@ -286,7 +286,7 @@ static int vimc_sen_s_stream(struct v4l2_subdev *sd, int enable) return 0; } -static struct v4l2_subdev_core_ops vimc_sen_core_ops = { +static const struct v4l2_subdev_core_ops vimc_sen_core_ops = { .log_status = v4l2_ctrl_subdev_log_status, .subscribe_event = v4l2_ctrl_subdev_subscribe_event, .unsubscribe_event = v4l2_event_subdev_unsubscribe, |
