diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-28 16:26:38 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-28 16:26:38 -0700 |
commit | 951fa4d49c28f069e5a29ed407c8ec8dd678b4cd (patch) | |
tree | 2b775327f059a0c3e6ad13f87bf7215efc112556 /src/mga_dac3026.c | |
parent | 32d6cc797103fbfa663b86718decebbb8d0fefcc (diff) |
Fix -Wold-style-declaration warnings
mga_dac3026.c:77:1: warning: ‘static’ is not at beginning of declaration
[-Wold-style-declaration]
const static unsigned char MGADACregs[] = {
^~~~~
mga_dac3026.c:103:1: warning: ‘static’ is not at beginning of declaration
[-Wold-style-declaration]
const static unsigned char MGADACbpp8[DACREGSIZE] = {
^~~~~
mga_dac3026.c:108:1: warning: ‘static’ is not at beginning of declaration
[-Wold-style-declaration]
const static unsigned char MGADACbpp16[DACREGSIZE] = {
^~~~~
mga_dac3026.c:124:1: warning: ‘static’ is not at beginning of declaration
[-Wold-style-declaration]
const static unsigned char MGADACbpp24[DACREGSIZE] = {
^~~~~
mga_dac3026.c:129:1: warning: ‘static’ is not at beginning of declaration
[-Wold-style-declaration]
const static unsigned char MGADACbpp32[DACREGSIZE] = {
^~~~~
mga_dacG.c: In function ‘MGAGInit’:
mga_dacG.c:1118:2: warning: ‘static’ is not at beginning of declaration
[-Wold-style-declaration]
const static unsigned char initDAC[] = {
^~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/mga_dac3026.c')
-rw-r--r-- | src/mga_dac3026.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mga_dac3026.c b/src/mga_dac3026.c index 085c772..2b00f2b 100644 --- a/src/mga_dac3026.c +++ b/src/mga_dac3026.c @@ -74,7 +74,7 @@ static Bool MGA3026_i2cInit(ScrnInfoPtr pScrn); /* * indexes to ti3026 registers (the order is important) */ -const static unsigned char MGADACregs[] = { +static const unsigned char MGADACregs[] = { 0x0F, 0x18, 0x19, 0x1A, 0x1C, 0x1D, 0x1E, 0x2A, 0x2B, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x06 @@ -100,12 +100,12 @@ const static unsigned char MGADACregs[] = { /* * initial values of ti3026 registers */ -const static unsigned char MGADACbpp8[DACREGSIZE] = { +static const unsigned char MGADACbpp8[DACREGSIZE] = { 0x06, 0x80, 0x4b, 0x25, 0x00, 0x00, 0x0C, 0x00, 0x1E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0, 0x00, 0x00 }; -const static unsigned char MGADACbpp16[DACREGSIZE] = { +static const unsigned char MGADACbpp16[DACREGSIZE] = { 0x07, 0x45, 0x53, 0x15, 0x00, 0x00, 0x2C, 0x00, 0x1E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x10, 0, 0x00, 0x00 @@ -121,12 +121,12 @@ const static unsigned char MGADACbpp16[DACREGSIZE] = { one documented as depending on revision. */ -const static unsigned char MGADACbpp24[DACREGSIZE] = { +static const unsigned char MGADACbpp24[DACREGSIZE] = { 0x06, 0x56, 0x5b, 0x25, 0x00, 0x00, 0x2C, 0x00, 0x1E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x10, 0, 0x00, 0x00 }; -const static unsigned char MGADACbpp32[DACREGSIZE] = { +static const unsigned char MGADACbpp32[DACREGSIZE] = { 0x07, 0x46, 0x5b, 0x05, 0x00, 0x00, 0x2C, 0x00, 0x1E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x10, 0, 0x00, 0x00 |