projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1368516
)
video: fbdev: ocfb: add const to of_device_id
author
Chunyang Zhong
<zhongchunyang@cdjrlc.com>
Fri, 10 Dec 2021 10:28:16 +0000
(18:28 +0800)
committer
Helge 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
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/ocfb.c
b/drivers/video/fbdev/ocfb.c
index bfa4ed42114864c6534c48d353964db43cdd72d8..da7e1457e58f2148bccb38191dc172b4cc34c285 100644
(file)
--- 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", },
{},
};