diff options
| author | Julia Lawall <[email protected]> | 2017-08-08 10:58:28 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-08-20 12:04:30 +0000 |
| commit | ebf7a6488eed7544dc53c757133663a465bb812d (patch) | |
| tree | 00695cdf339e8d5557d5dfb2b38a5df99d1cd14f /drivers/media/platform/vimc/vimc-scaler.c | |
| parent | media: mtk-mdp: constify v4l2_m2m_ops structures (diff) | |
| download | kernel-ebf7a6488eed7544dc53c757133663a465bb812d.tar.gz kernel-ebf7a6488eed7544dc53c757133663a465bb812d.zip | |
media: vimc: constify video_subdev structures
These structures are all only 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 <[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-scaler.c')
| -rw-r--r-- | drivers/media/platform/vimc/vimc-scaler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vimc/vimc-scaler.c b/drivers/media/platform/vimc/vimc-scaler.c index 0a3e086e12f3..e1602e0bc230 100644 --- a/drivers/media/platform/vimc/vimc-scaler.c +++ b/drivers/media/platform/vimc/vimc-scaler.c @@ -267,7 +267,7 @@ static int vimc_sca_s_stream(struct v4l2_subdev *sd, int enable) return 0; } -static struct v4l2_subdev_video_ops vimc_sca_video_ops = { +static const struct v4l2_subdev_video_ops vimc_sca_video_ops = { .s_stream = vimc_sca_s_stream, }; |
