Skip to content

Commit 416eb53

Browse files
mchehabaleksander0m
authored andcommitted
[media] coda/imx-vdoa: constify structs
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 <[email protected]> (cherry picked from commit d2fe28f)
1 parent 5cef90a commit 416eb53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/platform/coda/imx-vdoa.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,13 @@ static int vdoa_remove(struct platform_device *pdev)
315315
return 0;
316316
}
317317

318-
static struct of_device_id vdoa_dt_ids[] = {
318+
static const struct of_device_id vdoa_dt_ids[] = {
319319
{ .compatible = "fsl,imx6q-vdoa" },
320320
{}
321321
};
322322
MODULE_DEVICE_TABLE(of, vdoa_dt_ids);
323323

324-
static struct platform_driver vdoa_driver = {
324+
static const struct platform_driver vdoa_driver = {
325325
.probe = vdoa_probe,
326326
.remove = vdoa_remove,
327327
.driver = {

0 commit comments

Comments
 (0)