]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8188eu: remove ROMVer from struct HAL_VERSION
authorJakub Sitnicki <jsitnicki@gmail.com>
Fri, 10 Jul 2015 16:52:20 +0000 (18:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 03:12:19 +0000 (20:12 -0700)
ROM version on RTL8188EU is always 0.

Signed-off-by: Jakub Sitnicki <jsitnicki@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/hal_com.c
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
drivers/staging/rtl8188eu/include/HalVerDef.h

index a296648a4dd16720c759d6148037e15552053d29..38e9fdc312d336f5d914f7757204134cf40adabb 100644 (file)
@@ -50,7 +50,7 @@ void dump_chip_info(struct HAL_VERSION        chip_vers)
                cnt += sprintf((buf+cnt), "UNKNOWN_CUT(%d)_",
                               chip_vers.CUTVersion);
        cnt += sprintf((buf+cnt), "1T1R_");
-       cnt += sprintf((buf+cnt), "RomVer(%d)\n", chip_vers.ROMVer);
+       cnt += sprintf((buf+cnt), "RomVer(0)\n");
 
        pr_info("%s", buf);
 }
index ea9703095196aab8ff25932af96e7400a5635353..49b6b9cdf778a7fe953065c2f39ff0cc0c17e0b1 100644 (file)
@@ -141,8 +141,6 @@ static struct HAL_VERSION ReadChipVersion8188E(struct adapter *padapter)
        ChipVersion.VendorType = ((value32 & VENDOR_ID) ? CHIP_VENDOR_UMC : CHIP_VENDOR_TSMC);
        ChipVersion.CUTVersion = (value32 & CHIP_VER_RTL_MASK)>>CHIP_VER_RTL_SHIFT; /*  IC version (CUT) */
 
-       ChipVersion.ROMVer = 0; /*  ROM code version. */
-
        dump_chip_info(ChipVersion);
 
        pHalData->VersionID = ChipVersion;
index 2c24814d97938c77c68050cdcb44f3109dc7cf72..56b4ff08e509cba62a0d3a96f2ea57d2b87096d7 100644 (file)
@@ -45,14 +45,12 @@ struct HAL_VERSION {
        enum HAL_CHIP_TYPE      ChipType;
        enum HAL_CUT_VERSION    CUTVersion;
        enum HAL_VENDOR         VendorType;
-       u8                      ROMVer;
 };
 
 /*  Get element */
 #define GET_CVID_CHIP_TYPE(version)    (((version).ChipType))
 #define GET_CVID_MANUFACTUER(version)  (((version).VendorType))
 #define GET_CVID_CUT_VERSION(version)  (((version).CUTVersion))
-#define GET_CVID_ROM_VERSION(version)  (((version).ROMVer) & ROM_VERSION_MASK)
 
 /* Common Macro. -- */
 /* HAL_VERSION VersionID */