projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b34b0c
)
video: fbdev: kyro: make read-only array ODValues static const
author
Colin Ian King
<colin.i.king@gmail.com>
Tue, 8 Mar 2022 20:23:28 +0000
(20:23 +0000)
committer
Helge Deller
<deller@gmx.de>
Fri, 11 Mar 2022 07:27:37 +0000
(08:27 +0100)
Don't populate the read-only array ODValues on the stack but
instead make it static const. Also makes the object code a little
smaller.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/kyro/STG4000InitDevice.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/kyro/STG4000InitDevice.c
b/drivers/video/fbdev/kyro/STG4000InitDevice.c
index
21875d3
..
edfa0a0
100644
(file)
--- a/
drivers/video/fbdev/kyro/STG4000InitDevice.c
+++ b/
drivers/video/fbdev/kyro/STG4000InitDevice.c
@@
-124,7
+124,7
@@
u32 ProgramClock(u32 refClock,
u32 ulScore, ulPhaseScore, ulVcoScore;
u32 ulTmp = 0, ulVCO;
u32 ulScaleClockReq, ulMinClock, ulMaxClock;
-
u32
ODValues[] = { 1, 2, 0 };
+
static const unsigned char
ODValues[] = { 1, 2, 0 };
/* Translate clock in Hz */
coreClock *= 100; /* in Hz */