staging: xgifb coding style cleanup
authorVitor Braga <vitorpybraga@gmail.com>
Sun, 30 Mar 2014 03:44:59 +0000 (00:44 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 23:20:02 +0000 (16:20 -0700)
This fixes "missing a blank line after declaration" warnings from
checkpatch.pl for driver xgifb. The driver has no remaining errors or
warnings from checkpatch.pl

Signed-off-by: Vitor Braga <vitorpybraga@gmail.com>
Reviewed-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c
drivers/staging/xgifb/vb_init.c
drivers/staging/xgifb/vb_setmode.c

index 466804687fc04cdc9156419537899f4dda8fcaee..a62d4dd4ce82608cc6095931418897d261ce502b 100644 (file)
@@ -66,6 +66,7 @@ static int XGIfb_mode_rate_to_dclock(struct vb_device_info *XGI_Pr,
        unsigned short ModeIdIndex = 0, ClockIndex = 0;
        unsigned short RefreshRateTableIndex = 0;
        int Clock;
+
        InitTo330Pointer(HwDeviceExtension->jChipType, XGI_Pr);
 
        XGI_SearchModeID(ModeNo, &ModeIdIndex);
@@ -95,6 +96,7 @@ static int XGIfb_mode_rate_to_ddata(struct vb_device_info *XGI_Pr,
        unsigned short HRE, HBE, HRS, HDE;
        unsigned char sr_data, cr_data, cr_data2;
        int B, C, D, F, temp, j;
+
        InitTo330Pointer(HwDeviceExtension->jChipType, XGI_Pr);
        if (!XGI_SearchModeID(ModeNo, &ModeIdIndex))
                return 0;
index 21541720e05ce5c9a000c35dd267eb34bbb5f506..ff210ddcbf9e5c1936a0f2fb931a0ad69e4607a2 100644 (file)
@@ -130,6 +130,7 @@ static void XGINew_DDRII_Bootup_XG27(
                        unsigned long P3c4, struct vb_device_info *pVBInfo)
 {
        unsigned long P3d4 = P3c4 + 0x10;
+
        pVBInfo->ram_type = XGINew_GetXG20DRAMType(HwDeviceExtension, pVBInfo);
        XGINew_SetMemoryClock(pVBInfo);
 
@@ -389,6 +390,7 @@ static void XGI_SetDRAM_Helper(unsigned long P3d4, u8 seed, u8 temp2, u8 reg,
        u8 shift_factor, u8 mask1, u8 mask2)
 {
        u8 j;
+
        for (j = 0; j < 4; j++) {
                temp2 |= (((seed >> (2 * j)) & 0x03) << shift_factor);
                xgifb_reg_set(P3d4, reg, temp2);
index 400c726753fa48170e8a0187568d7025daed2092..c638c8febee945fba00c5a13cd85e5fa8f270b28 100644 (file)
@@ -49,6 +49,7 @@ void InitTo330Pointer(unsigned char ChipType, struct vb_device_info *pVBInfo)
 
        if (ChipType == XG27) {
                unsigned char temp;
+
                pVBInfo->MCLKData = XGI27New_MCLKData;
                pVBInfo->CR40 = XGI27_cr41;
                pVBInfo->XGINew_CR97 = 0xc1;
@@ -5222,6 +5223,7 @@ void XGI_SenseCRT1(struct vb_device_info *pVBInfo)
        unsigned short temp;
 
        int i;
+
        xgifb_reg_set(pVBInfo->P3c4, 0x05, 0x86);
 
        /* to fix XG42 single LCD sense to CRT+LCD */