rtl8xxxu: Use define for REG_PWR_DATA bits
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 29 Feb 2016 22:05:45 +0000 (17:05 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 13:29:19 +0000 (15:29 +0200)
Use the bit define rather than hard code the value for REG_PWR_DATA bits.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h

index aae45090d42abe505801d57b1ff2c274a4ea8d8a..f936e03e07615b2ab200c73dc41f48f2e23597f6 100644 (file)
@@ -5996,7 +5996,7 @@ static void rtl8723b_enable_rf(struct rtl8xxxu_priv *priv)
        rtl8xxxu_write8(priv, 0x0067, val8);
 
        val32 = rtl8xxxu_read32(priv, REG_PWR_DATA);
-       val32 |= BIT(11);
+       val32 |= PWR_DATA_EEPRPAD_RFE_CTRL_EN;
        rtl8xxxu_write32(priv, REG_PWR_DATA, val32);
 
        /*
index a055362471e54aa2e5fe0065027b43e1eebb3bff..e0b9ea3811c06338d97295bc28d36f787cbc1b67 100644 (file)
 #define  EFUSE_ACCESS_DISABLE          0x00    /* RTL8723 only */
 
 #define REG_PWR_DATA                   0x0038
-#define PWR_DATA_EEPRPAD_RFE_CTRL_EN   BIT(11)
+#define  PWR_DATA_EEPRPAD_RFE_CTRL_EN  BIT(11)
 
 #define REG_CAL_TIMER                  0x003c
 #define REG_ACLK_MON                   0x003e