Skip to content

Commit

Permalink
rtl8xxxu: Use define for REG_PWR_DATA bits
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jes Sorensen authored and Kalle Valo committed Mar 10, 2016
1 parent 0290e7d commit 37f44dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
#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
Expand Down

0 comments on commit 37f44dc

Please sign in to comment.