]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
staging: xgifb: vb_setmode: make XGI_GetLVDSOEMTableIndex() static
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 27 Nov 2011 21:03:12 +0000 (23:03 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 21:20:12 +0000 (06:20 +0900)
XGI_GetLVDSOEMTableIndex() can be made static. Move the function, so that
forward declaration is not needed.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/vb_setmode.c
drivers/staging/xgifb/vb_setmode.h

index bc035dbde3b3931fba7c11501eb65fb68d60a71b..3d5b343f7f1342eaefc62b765f4e15f699494f83 100644 (file)
@@ -3819,6 +3819,17 @@ static void XGI_XG27BLSignalVDD(unsigned short tempbh, unsigned short tempbl,
        xgifb_reg_and_or(pVBInfo->P3d4, 0x48, ~tempbh, tempbl);
 }
 
+static unsigned short XGI_GetLVDSOEMTableIndex(struct vb_device_info *pVBInfo)
+{
+       unsigned short index;
+
+       index = xgifb_reg_get(pVBInfo->P3d4, 0x36);
+       if (index < sizeof(XGI21_LCDCapList)
+                       / sizeof(struct XGI21_LVDSCapStruct))
+               return index;
+       return 0;
+}
+
 /* --------------------------------------------------------------------- */
 /* Function : XGI_XG21SetPanelDelay */
 /* Input : */
@@ -6043,18 +6054,6 @@ static void XGI_DisableGatingCRT(struct xgi_hw_device_info *HwDeviceExtension,
        xgifb_reg_and_or(pVBInfo->P3d4, 0x63, 0xBF, 0x00);
 }
 
-/* --------------------------------------------------------------------- */
-unsigned short XGI_GetLVDSOEMTableIndex(struct vb_device_info *pVBInfo)
-{
-       unsigned short index;
-
-       index = xgifb_reg_get(pVBInfo->P3d4, 0x36);
-       if (index < sizeof(XGI21_LCDCapList)
-                       / sizeof(struct XGI21_LVDSCapStruct))
-               return index;
-       return 0;
-}
-
 unsigned char XGI_XG21CheckLVDSMode(unsigned short ModeNo,
                unsigned short ModeIdIndex, struct vb_device_info *pVBInfo)
 {
index a91104469cf34e42f51b7903040ec4b1bc39f0dc..aa065a7300df80bc3895e7e8bca2669fb495757e 100644 (file)
@@ -50,6 +50,5 @@ extern unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE,
 extern unsigned char XGI_XG21CheckLVDSMode(unsigned short ModeNo,
                                           unsigned short ModeIdIndex,
                                           struct vb_device_info *pVBInfo);
-extern unsigned short XGI_GetLVDSOEMTableIndex(struct vb_device_info *pVBInfo);
 
 #endif