summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/kyro/STG4000InitDevice.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-03-08 20:23:28 +0000
committerHelge Deller <deller@gmx.de>2022-03-11 08:27:37 +0100
commite445c8b2aa2df0e49f6037886c32d54a5e3960b1 (patch)
tree4b627bdc81d72f8c11752ef34d3330ec6045f88a /drivers/video/fbdev/kyro/STG4000InitDevice.c
parent5b34b0c2248968ec83ebd78669dc0b9085d13f75 (diff)
video: fbdev: kyro: make read-only array ODValues static const
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>
Diffstat (limited to 'drivers/video/fbdev/kyro/STG4000InitDevice.c')
-rw-r--r--drivers/video/fbdev/kyro/STG4000InitDevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/kyro/STG4000InitDevice.c b/drivers/video/fbdev/kyro/STG4000InitDevice.c
index 21875d3c2dc2..edfa0a04854d 100644
--- 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 */