Skip to content

Commit

Permalink
[media] coda/imx-vdoa: constify structs
Browse files Browse the repository at this point in the history
As warned by checkpatch:

	WARNING: struct of_device_id should normally be const
	torvalds#318: FILE: drivers/media/platform/coda/imx-vdoa.c:318:
	+static struct of_device_id vdoa_dt_ids[] = {

So, constify structs.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
(cherry picked from commit d2fe28f)
  • Loading branch information
mchehab authored and aleksander0m committed Jun 25, 2017
1 parent 5cef90a commit 416eb53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/coda/imx-vdoa.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,13 @@ static int vdoa_remove(struct platform_device *pdev)
return 0;
}

static struct of_device_id vdoa_dt_ids[] = {
static const struct of_device_id vdoa_dt_ids[] = {
{ .compatible = "fsl,imx6q-vdoa" },
{}
};
MODULE_DEVICE_TABLE(of, vdoa_dt_ids);

static struct platform_driver vdoa_driver = {
static const struct platform_driver vdoa_driver = {
.probe = vdoa_probe,
.remove = vdoa_remove,
.driver = {
Expand Down

0 comments on commit 416eb53

Please sign in to comment.