summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorChunyang Zhong <zhongchunyang@cdjrlc.com>2021-12-10 18:28:16 +0800
committerHelge Deller <deller@gmx.de>2022-01-29 22:24:25 +0100
commit4378aaeef31bfac5eae5a1364f3e27c6314566dd (patch)
tree8c5a09606650a3c502ccbe48e49dbffc158292ee /drivers/video
parent136851694889a532ab17004d4c5f4e55304dc330 (diff)
video: fbdev: ocfb: add const to of_device_id
struct of_device_id should normally be const. Signed-off-by: Chunyang Zhong <zhongchunyang@cdjrlc.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/ocfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/ocfb.c b/drivers/video/fbdev/ocfb.c
index bfa4ed421148..da7e1457e58f 100644
--- a/drivers/video/fbdev/ocfb.c
+++ b/drivers/video/fbdev/ocfb.c
@@ -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", },
{},
};