From: Mauro Carvalho Chehab Date: Tue, 31 Jan 2017 10:14:56 +0000 (-0200) Subject: [media] coda/imx-vdoa: constify structs X-Git-Tag: v4.11-rc1~132^2~11 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d2fe28feaebb;p=uclinux-h8%2Flinux.git [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 --- 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 = {