Commit 26c511f8 authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman

staging: vt6656: Fix CamelCase warnings in mac.h and mac.c

This patch fixes the checkpatch.pl warnings like:
CHECK: Avoid CamelCase: <EnCFG_BBType_a>
175: FILE: drivers/staging/vt6656/mac.h:175:
+#define EnCFG_BBType_a		0x00
and affected places in mac.c
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/d04b36cc5446d1c996ac8bc71ff391d822cedd9d.1645477326.git.philipp.g.hortmann@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a17b3450
...@@ -39,7 +39,7 @@ int vnt_mac_set_bb_type(struct vnt_private *priv, u8 type) ...@@ -39,7 +39,7 @@ int vnt_mac_set_bb_type(struct vnt_private *priv, u8 type)
u8 data[2]; u8 data[2];
data[0] = type; data[0] = type;
data[1] = EnCFG_BBType_MASK; data[1] = EN_CFG_BB_TYPE_MASK;
return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG0, return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG0,
MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data),
...@@ -120,8 +120,8 @@ int vnt_mac_enable_protect_mode(struct vnt_private *priv) ...@@ -120,8 +120,8 @@ int vnt_mac_enable_protect_mode(struct vnt_private *priv)
{ {
u8 data[2]; u8 data[2];
data[0] = EnCFG_ProtectMd; data[0] = EN_CFG_PROTECT_MD;
data[1] = EnCFG_ProtectMd; data[1] = EN_CFG_PROTECT_MD;
return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG0, return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG0,
MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data); MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data);
...@@ -132,7 +132,7 @@ int vnt_mac_disable_protect_mode(struct vnt_private *priv) ...@@ -132,7 +132,7 @@ int vnt_mac_disable_protect_mode(struct vnt_private *priv)
u8 data[2]; u8 data[2];
data[0] = 0; data[0] = 0;
data[1] = EnCFG_ProtectMd; data[1] = EN_CFG_PROTECT_MD;
return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG0, return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG0,
MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data); MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data);
...@@ -142,8 +142,8 @@ int vnt_mac_enable_barker_preamble_mode(struct vnt_private *priv) ...@@ -142,8 +142,8 @@ int vnt_mac_enable_barker_preamble_mode(struct vnt_private *priv)
{ {
u8 data[2]; u8 data[2];
data[0] = EnCFG_BarkerPream; data[0] = EN_CFG_BARKER_PREAM;
data[1] = EnCFG_BarkerPream; data[1] = EN_CFG_BARKER_PREAM;
return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG2, return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG2,
MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data); MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data);
...@@ -154,7 +154,7 @@ int vnt_mac_disable_barker_preamble_mode(struct vnt_private *priv) ...@@ -154,7 +154,7 @@ int vnt_mac_disable_barker_preamble_mode(struct vnt_private *priv)
u8 data[2]; u8 data[2];
data[0] = 0; data[0] = 0;
data[1] = EnCFG_BarkerPream; data[1] = EN_CFG_BARKER_PREAM;
return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG2, return vnt_control_out(priv, MESSAGE_TYPE_WRITE_MASK, MAC_REG_ENCFG2,
MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data); MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data);
......
...@@ -172,20 +172,20 @@ ...@@ -172,20 +172,20 @@
#define TFTCTL_TSFCNTREN BIT(0) #define TFTCTL_TSFCNTREN BIT(0)
/* Bits in the EnhanceCFG_0 register */ /* Bits in the EnhanceCFG_0 register */
#define EnCFG_BBType_a 0x00 #define EN_CFG_BB_TYPE_A 0x00
#define EnCFG_BBType_b BIT(0) #define EN_CFG_BB_TYPE_B BIT(0)
#define EnCFG_BBType_g BIT(1) #define EN_CFG_BB_TYPE_G BIT(1)
#define EnCFG_BBType_MASK (EnCFG_BBType_b | EnCFG_BBType_g) #define EN_CFG_BB_TYPE_MASK (EN_CFG_BB_TYPE_B | EN_CFG_BB_TYPE_G)
#define EnCFG_ProtectMd BIT(5) #define EN_CFG_PROTECT_MD BIT(5)
/* Bits in the EnhanceCFG_1 register */ /* Bits in the EnhanceCFG_1 register */
#define EnCFG_BcnSusInd BIT(0) #define EN_CFG_BCN_SUS_IND BIT(0)
#define EnCFG_BcnSusClr BIT(1) #define EN_CFG_BCN_SUS_CLR BIT(1)
/* Bits in the EnhanceCFG_2 register */ /* Bits in the EnhanceCFG_2 register */
#define EnCFG_NXTBTTCFPSTR BIT(0) #define EN_CFG_NXTBTTCFPSTR BIT(0)
#define EnCFG_BarkerPream BIT(1) #define EN_CFG_BARKER_PREAM BIT(1)
#define EnCFG_PktBurstMode BIT(2) #define EN_CFG_PKT_BURST_MD BIT(2)
/* Bits in the CFG register */ /* Bits in the CFG register */
#define CFG_TKIPOPT BIT(7) #define CFG_TKIPOPT BIT(7)
...@@ -333,7 +333,7 @@ ...@@ -333,7 +333,7 @@
#define PKT_TYPE_ERROR_CRC BIT(1) #define PKT_TYPE_ERROR_CRC BIT(1)
#define PKT_TYPE_BSSID BIT(0) #define PKT_TYPE_BSSID BIT(0)
#define Default_BI 0x200 #define DEFAULT_BI 0x200
/* MiscFIFO Offset */ /* MiscFIFO Offset */
#define MISCFIFO_KEYETRY0 32 #define MISCFIFO_KEYETRY0 32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment