summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-05-07 12:09:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-05-07 12:09:34 -0700
commit3c32eedb0c6e300c9701da42c6300a8ef7bde7fd (patch)
tree8cceb8d0749b586b8d95128b7f5df15b5500e639
parentc5f3f665a2d3531aafad751cbf8a27c3e7103eb6 (diff)
GetAccelPitchValues: mark accelWidths as const
Suggested by cppcheck: alp_driver.c:413:6: style: Variable 'accelWidths' can be declared with const [constVariable] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/alp_driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/alp_driver.c b/src/alp_driver.c
index 387ec1f..7a6e93c 100644
--- a/src/alp_driver.c
+++ b/src/alp_driver.c
@@ -410,11 +410,11 @@ GetAccelPitchValues(ScrnInfoPtr pScrn)
/* The only line pitches the accelerator supports */
#if 1
- int accelWidths[] = { 640, 768, 800, 960, 1024, 1152, 1280,
+ const int accelWidths[] = { 640, 768, 800, 960, 1024, 1152, 1280,
1600, 1920, 2048, 0 };
#else
- int accelWidths[] = { 512, 576, 640, 768, 800, 960, 1024, 1152,
- 1280, 1536, 1600, 1920, 2048, 0 };
+ const int accelWidths[] = { 512, 576, 640, 768, 800, 960, 1024, 1152,
+ 1280, 1536, 1600, 1920, 2048, 0 };
#endif
switch (pCir->Chipset) {