forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/video/fbdev/matrox/matroxfb_misc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 *
34 * Hardware accelerated Matrox Millennium I, II, Mystique, G100, G200 and G400
....@@ -672,7 +673,10 @@
672673 if (bd->pins[115] & 4) {
673674 minfo->values.reg.mctlwtst_core = minfo->values.reg.mctlwtst;
674675 } 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
+
676680 minfo->values.reg.mctlwtst_core = (minfo->values.reg.mctlwtst & ~7) |
677681 wtst_xlat[minfo->values.reg.mctlwtst & 7];
678682 }