Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bhumika Goyal and committed by
Mauro Carvalho Chehab
0cba3f43 1e6be014

+3 -3
+1 -1
drivers/media/platform/davinci/dm355_ccdc.c
··· 841 841 return 0; 842 842 } 843 843 844 - static struct ccdc_hw_device ccdc_hw_dev = { 844 + static const struct ccdc_hw_device ccdc_hw_dev = { 845 845 .name = "DM355 CCDC", 846 846 .owner = THIS_MODULE, 847 847 .hw_ops = {
+1 -1
drivers/media/platform/davinci/dm644x_ccdc.c
··· 776 776 regw(ccdc_ctx[CCDC_VP_OUT >> 2], CCDC_VP_OUT); 777 777 regw(ccdc_ctx[CCDC_PCR >> 2], CCDC_PCR); 778 778 } 779 - static struct ccdc_hw_device ccdc_hw_dev = { 779 + static const struct ccdc_hw_device ccdc_hw_dev = { 780 780 .name = "DM6446 CCDC", 781 781 .owner = THIS_MODULE, 782 782 .hw_ops = {
+1 -1
drivers/media/platform/davinci/isif.c
··· 1000 1000 return 0; 1001 1001 } 1002 1002 1003 - static struct ccdc_hw_device isif_hw_dev = { 1003 + static const struct ccdc_hw_device isif_hw_dev = { 1004 1004 .name = "ISIF", 1005 1005 .owner = THIS_MODULE, 1006 1006 .hw_ops = {