summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/tvp514x.c
diff options
context:
space:
mode:
authorJulia Lawall2016-09-11 15:05:55 +0200
committerMauro Carvalho Chehab2016-09-19 21:22:18 +0200
commitdb83d08dee3324dc8b0bf0d02ba295ba25a01758 (patch)
tree8c51e0016fbae83773b5a71bff563a4e3fbeb87f /drivers/media/i2c/tvp514x.c
parent[media] pci: constify vb2_ops structures (diff)
downloadkernel-qcow2-linux-db83d08dee3324dc8b0bf0d02ba295ba25a01758.tar.gz
kernel-qcow2-linux-db83d08dee3324dc8b0bf0d02ba295ba25a01758.tar.xz
kernel-qcow2-linux-db83d08dee3324dc8b0bf0d02ba295ba25a01758.zip
[media] constify local structures
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored in a variable. Declare structures having all of these properties as const. Done using Coccinelle. Based on a suggestion by Joe Perches <joe@perches.com>. 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@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/tvp514x.c')
-rw-r--r--drivers/media/i2c/tvp514x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c
index 7cf749fc7143..d5c9347f4c6d 100644
--- a/drivers/media/i2c/tvp514x.c
+++ b/drivers/media/i2c/tvp514x.c
@@ -977,7 +977,7 @@ static const struct v4l2_subdev_ops tvp514x_ops = {
.pad = &tvp514x_pad_ops,
};
-static struct tvp514x_decoder tvp514x_dev = {
+static const struct tvp514x_decoder tvp514x_dev = {
.streaming = 0,
.fmt_list = tvp514x_fmt_list,
.num_fmts = ARRAY_SIZE(tvp514x_fmt_list),