Skip to content

Commit

Permalink
media: davinci: make ccdc_hw_device structures const
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
goyalbhumika authored and mchehab committed Oct 31, 2017
1 parent 1e6be01 commit 0cba3f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/media/platform/davinci/dm355_ccdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/platform/davinci/dm644x_ccdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ static void ccdc_restore_context(void)
regw(ccdc_ctx[CCDC_VP_OUT >> 2], CCDC_VP_OUT);
regw(ccdc_ctx[CCDC_PCR >> 2], CCDC_PCR);
}
static struct ccdc_hw_device ccdc_hw_dev = {
static const struct ccdc_hw_device ccdc_hw_dev = {
.name = "DM6446 CCDC",
.owner = THIS_MODULE,
.hw_ops = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/platform/davinci/isif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ static int isif_close(struct device *device)
return 0;
}

static struct ccdc_hw_device isif_hw_dev = {
static const struct ccdc_hw_device isif_hw_dev = {
.name = "ISIF",
.owner = THIS_MODULE,
.hw_ops = {
Expand Down

0 comments on commit 0cba3f4

Please sign in to comment.