]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: xgifb: vb_setmode: make XGI_XG21SetPanelDelay() static
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 27 Nov 2011 21:03:11 +0000 (23:03 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 21:20:12 +0000 (06:20 +0900)
XGI_XG21SetPanelDelay() 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 259474f2584639ae679dde52aa27a62677a2d67c..bc035dbde3b3931fba7c11501eb65fb68d60a71b 100644 (file)
@@ -3819,6 +3819,35 @@ static void XGI_XG27BLSignalVDD(unsigned short tempbh, unsigned short tempbl,
        xgifb_reg_and_or(pVBInfo->P3d4, 0x48, ~tempbh, tempbl);
 }
 
+/* --------------------------------------------------------------------- */
+/* Function : XGI_XG21SetPanelDelay */
+/* Input : */
+/* Output : */
+/* Description : */
+/* I/P : bl : 1 ; T1 : the duration between CPL on and signal on */
+/* : bl : 2 ; T2 : the duration signal on and Vdd on */
+/* : bl : 3 ; T3 : the duration between CPL off and signal off */
+/* : bl : 4 ; T4 : the duration signal off and Vdd off */
+/* --------------------------------------------------------------------- */
+static void XGI_XG21SetPanelDelay(unsigned short tempbl,
+               struct vb_device_info *pVBInfo)
+{
+       unsigned short index;
+
+       index = XGI_GetLVDSOEMTableIndex(pVBInfo);
+       if (tempbl == 1)
+               mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S1);
+
+       if (tempbl == 2)
+               mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S2);
+
+       if (tempbl == 3)
+               mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S3);
+
+       if (tempbl == 4)
+               mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S4);
+}
+
 void XGI_DisplayOn(struct xgi_hw_device_info *pXGIHWDE,
                struct vb_device_info *pVBInfo)
 {
@@ -6026,35 +6055,6 @@ unsigned short XGI_GetLVDSOEMTableIndex(struct vb_device_info *pVBInfo)
        return 0;
 }
 
-/* --------------------------------------------------------------------- */
-/* Function : XGI_XG21SetPanelDelay */
-/* Input : */
-/* Output : */
-/* Description : */
-/* I/P : bl : 1 ; T1 : the duration between CPL on and signal on */
-/* : bl : 2 ; T2 : the duration signal on and Vdd on */
-/* : bl : 3 ; T3 : the duration between CPL off and signal off */
-/* : bl : 4 ; T4 : the duration signal off and Vdd off */
-/* --------------------------------------------------------------------- */
-void XGI_XG21SetPanelDelay(unsigned short tempbl,
-               struct vb_device_info *pVBInfo)
-{
-       unsigned short index;
-
-       index = XGI_GetLVDSOEMTableIndex(pVBInfo);
-       if (tempbl == 1)
-               mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S1);
-
-       if (tempbl == 2)
-               mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S2);
-
-       if (tempbl == 3)
-               mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S3);
-
-       if (tempbl == 4)
-               mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S4);
-}
-
 unsigned char XGI_XG21CheckLVDSMode(unsigned short ModeNo,
                unsigned short ModeIdIndex, struct vb_device_info *pVBInfo)
 {
index 119884a318526bcba71664a48c1f9e1ec607c181..a91104469cf34e42f51b7903040ec4b1bc39f0dc 100644 (file)
@@ -47,8 +47,6 @@ extern unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE,
                                         unsigned short ModeNo,
                                         unsigned short ModeIdIndex,
                                         struct vb_device_info *);
-extern void XGI_XG21SetPanelDelay(unsigned short tempbl,
-                                 struct vb_device_info *pVBInfo);
 extern unsigned char XGI_XG21CheckLVDSMode(unsigned short ModeNo,
                                           unsigned short ModeIdIndex,
                                           struct vb_device_info *pVBInfo);