summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-01-31 08:13:43 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-01-31 08:16:01 -0200
commit126f52b02e6ec6a25f0b32058a91648304922d4a (patch)
treed8cd6e4169daa3ccdc2398811c9c938ba38be057 /drivers/media/platform
parentb0444f18e0b18abce566e9e023d52e77e9cb68e1 (diff)
downloadlinux-126f52b02e6ec6a25f0b32058a91648304922d4a.tar.bz2
[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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/coda/imx-vdoa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/coda/imx-vdoa.c b/drivers/media/platform/coda/imx-vdoa.c
index f61baf7dcbc1..67fd8ffa60a4 100644
--- a/drivers/media/platform/coda/imx-vdoa.c
+++ b/drivers/media/platform/coda/imx-vdoa.c
@@ -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 = {