[media] coda/imx-vdoa: constify structs
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 10:14:56 +0000 (08:14 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 8 Feb 2017 12:29:17 +0000 (10:29 -0200)
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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/imx-vdoa.c

index f61baf7dcbc1cac2fda2d5d2c6c5169949a2be6c..67fd8ffa60a418f6538d6b358c3e3d91f4f385b6 100644 (file)
@@ -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         = {