Commit 126f52b0 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] coda/imx-vdoa: constify structs

As warned by checkpatch:

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

So, constify structs.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent b0444f18
...@@ -315,13 +315,13 @@ static int vdoa_remove(struct platform_device *pdev) ...@@ -315,13 +315,13 @@ static int vdoa_remove(struct platform_device *pdev)
return 0; return 0;
} }
static struct of_device_id vdoa_dt_ids[] = { static const struct of_device_id vdoa_dt_ids[] = {
{ .compatible = "fsl,imx6q-vdoa" }, { .compatible = "fsl,imx6q-vdoa" },
{} {}
}; };
MODULE_DEVICE_TABLE(of, vdoa_dt_ids); MODULE_DEVICE_TABLE(of, vdoa_dt_ids);
static struct platform_driver vdoa_driver = { static const struct platform_driver vdoa_driver = {
.probe = vdoa_probe, .probe = vdoa_probe,
.remove = vdoa_remove, .remove = vdoa_remove,
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment