[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211210102816.9187-1-zhongchunyang@cdjrlc.com>
Date: Fri, 10 Dec 2021 18:28:16 +0800
From: Chunyang Zhong <zhongchunyang@...rlc.com>
To: dri-devel@...ts.freedesktop.org
Cc: linux-fbdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Chunyang Zhong <zhongchunyang@...rlc.com>
Subject: [PATCH] video: ocfb: add const to of_device_id
struct of_device_id should normally be const.
Signed-off-by: Chunyang Zhong <zhongchunyang@...rlc.com>
---
drivers/video/fbdev/ocfb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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", },
{},
};
--
2.34.1
Powered by blists - more mailing lists