video: fbdev: ocfb: add const to of_device_id
authorChunyang Zhong <zhongchunyang@cdjrlc.com>
Fri, 10 Dec 2021 10:28:16 +0000 (18:28 +0800)
committerHelge Deller <deller@gmx.de>
Sat, 29 Jan 2022 21:24:25 +0000 (22:24 +0100)
struct of_device_id should normally be const.

Signed-off-by: Chunyang Zhong <zhongchunyang@cdjrlc.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/ocfb.c

index bfa4ed4..da7e145 100644 (file)
@@ -387,7 +387,7 @@ static int ocfb_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id ocfb_match[] = {
+static const struct of_device_id ocfb_match[] = {
        { .compatible = "opencores,ocfb", },
        {},
 };