.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * |
---|
3 | 4 | * Hardware accelerated Matrox Millennium I, II, Mystique, G100, G200 and G400 |
---|
.. | .. |
---|
672 | 673 | if (bd->pins[115] & 4) { |
---|
673 | 674 | minfo->values.reg.mctlwtst_core = minfo->values.reg.mctlwtst; |
---|
674 | 675 | } else { |
---|
675 | | - u_int32_t wtst_xlat[] = { 0, 1, 5, 6, 7, 5, 2, 3 }; |
---|
| 676 | + static const u8 wtst_xlat[] = { |
---|
| 677 | + 0, 1, 5, 6, 7, 5, 2, 3 |
---|
| 678 | + }; |
---|
| 679 | + |
---|
676 | 680 | minfo->values.reg.mctlwtst_core = (minfo->values.reg.mctlwtst & ~7) | |
---|
677 | 681 | wtst_xlat[minfo->values.reg.mctlwtst & 7]; |
---|
678 | 682 | } |
---|