aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/vt6656/baseband.c
diff options
context:
space:
mode:
authorOscar Carter <oscar.carter@gmx.com>2020-03-20 19:13:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-21 11:03:16 +0100
commit3017e587e36819f87e53d3c8751afdf987c1f542 (patch)
tree4737b9cc01c33aeea6e088c035d379df07b18d29 /drivers/staging/vt6656/baseband.c
parentstaging: rtl8188eu: remove some 5 GHz code (diff)
downloadwireguard-linux-3017e587e36819f87e53d3c8751afdf987c1f542.tar.xz
wireguard-linux-3017e587e36819f87e53d3c8751afdf987c1f542.zip
staging: vt6656: Use BIT() macro in vnt_mac_reg_bits_* functions
The last parameter in the functions vnt_mac_reg_bits_on and vnt_mac_reg_bits_off defines the bits to set or unset. So, it's more clear to use the BIT() macro instead of an hexadecimal value. Signed-off-by: Oscar Carter <oscar.carter@gmx.com> Link: https://lore.kernel.org/r/20200320181326.12156-1-oscar.carter@gmx.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/baseband.c')
-rw-r--r--drivers/staging/vt6656/baseband.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c
index 74b620b4261e..0b5729abcbcd 100644
--- a/drivers/staging/vt6656/baseband.c
+++ b/drivers/staging/vt6656/baseband.c
@@ -22,6 +22,7 @@
*
*/
+#include <linux/bits.h>
#include "mac.h"
#include "baseband.h"
#include "rf.h"
@@ -454,7 +455,7 @@ int vnt_vt3184_init(struct vnt_private *priv)
if (ret)
goto end;
- ret = vnt_mac_reg_bits_on(priv, MAC_REG_PAPEDELAY, 0x01);
+ ret = vnt_mac_reg_bits_on(priv, MAC_REG_PAPEDELAY, BIT(0));
if (ret)
goto end;
} else if (priv->rf_type == RF_VT3226D0) {
@@ -463,7 +464,7 @@ int vnt_vt3184_init(struct vnt_private *priv)
if (ret)
goto end;
- ret = vnt_mac_reg_bits_on(priv, MAC_REG_PAPEDELAY, 0x01);
+ ret = vnt_mac_reg_bits_on(priv, MAC_REG_PAPEDELAY, BIT(0));
if (ret)
goto end;
}