aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2014-05-16 10:03:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-16 11:34:20 -0700
commitd66ecc271c42b4f3d618d76c98407812a2c6300e (patch)
tree14d3803b23f9adb797f86ebbbb85d21bcdcfe57d
parentstaging: rtl8723au: rtl8723a_bt-coexist.c: Be consistent in use of BIT() (diff)
staging: rtl8723au: hal_com.c: Use BIT() consistently instead of BITx
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723au/hal/hal_com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723au/hal/hal_com.c b/drivers/staging/rtl8723au/hal/hal_com.c
index 8e08977e929b..bb948e595be3 100644
--- a/drivers/staging/rtl8723au/hal/hal_com.c
+++ b/drivers/staging/rtl8723au/hal/hal_com.c
@@ -760,14 +760,14 @@ void rtl8723a_bcn_valid(struct rtw_adapter *padapter)
/* BCN_VALID, BIT16 of REG_TDECTRL = BIT0 of REG_TDECTRL+2,
write 1 to clear, Clear by sw */
rtw_write8(padapter, REG_TDECTRL + 2,
- rtw_read8(padapter, REG_TDECTRL + 2) | BIT0);
+ rtw_read8(padapter, REG_TDECTRL + 2) | BIT(0));
}
bool rtl8723a_get_bcn_valid(struct rtw_adapter *padapter)
{
bool retval;
- retval = (rtw_read8(padapter, REG_TDECTRL + 2) & BIT0) ? true : false;
+ retval = (rtw_read8(padapter, REG_TDECTRL + 2) & BIT(0)) ? true : false;
return retval;
}