aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/davinci/dm355_ccdc.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-10-17 08:27:25 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-10-31 07:19:13 -0400
commit0cba3f438cd6154621a3b4d66e0875ba213cd7ab (patch)
tree7cbc7d3910310630ab58bfce880483aa7038110f /drivers/media/platform/davinci/dm355_ccdc.c
parentmedia: davinci: make function arguments const (diff)
downloadlinux-dev-0cba3f438cd6154621a3b4d66e0875ba213cd7ab.tar.xz
linux-dev-0cba3f438cd6154621a3b4d66e0875ba213cd7ab.zip
media: davinci: make ccdc_hw_device structures const
Make these structures const as they are only getting passed to the functions vpfe_{register/unregister}_ccdc_device having the argument as const. Structures found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/davinci/dm355_ccdc.c')
-rw-r--r--drivers/media/platform/davinci/dm355_ccdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/davinci/dm355_ccdc.c b/drivers/media/platform/davinci/dm355_ccdc.c
index 6d492dc4c3a9..89cb3094d7e6 100644
--- a/drivers/media/platform/davinci/dm355_ccdc.c
+++ b/drivers/media/platform/davinci/dm355_ccdc.c
@@ -841,7 +841,7 @@ static int ccdc_set_hw_if_params(struct vpfe_hw_if_param *params)
return 0;
}
-static struct ccdc_hw_device ccdc_hw_dev = {
+static const struct ccdc_hw_device ccdc_hw_dev = {
.name = "DM355 CCDC",
.owner = THIS_MODULE,
.hw_ops = {