]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8188eu: remove RegulatorMode from struct hal_data_8188e
authorJakub Sitnicki <jsitnicki@gmail.com>
Fri, 10 Jul 2015 16:52:17 +0000 (18:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 03:08:31 +0000 (20:08 -0700)
This field is not used anywhere.  Also, kill the rt_regulator_mode enum
which exists just for this field.

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

index 7904d2260f2cfd6b0f0e2eafeb1727ddab5683e7..f6c1591e66c302250e52af224b9f1b9c7af4c045 100644 (file)
@@ -144,9 +144,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) */
 
-       /*  For regulator mode. by tynli. 2011.01.14 */
-       pHalData->RegulatorMode = ((value32 & TRP_BT_EN) ? RT_LDO_REGULATOR : RT_SWITCHING_REGULATOR);
-
        ChipVersion.ROMVer = 0; /*  ROM code version. */
 
        dump_chip_info(ChipVersion);
index 7d8e022925e013eb432362f67ea3ff2f441b9104..5aa2adc1f01319aaa138faa1dfc6313ab9f76608 100644 (file)
@@ -188,15 +188,8 @@ struct txpowerinfo24g {
 
 #define EFUSE_PROTECT_BYTES_BANK       16
 
-/*  For RTL8723 regulator mode. */
-enum rt_regulator_mode {
-       RT_SWITCHING_REGULATOR = 0,
-       RT_LDO_REGULATOR = 1,
-};
-
 struct hal_data_8188e {
        struct HAL_VERSION      VersionID;
-       enum rt_regulator_mode RegulatorMode; /*  switching regulator or LDO */
        u16     CustomerID;
        u8 *pfirmware;
        u32 fwsize;