Commit 0ac62072 authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman

staging: rtl8192e: Rename TPPoll_CQ, AcmHwCtrl and AcmHw_BeqEn

Rename variable TPPoll_CQ to TP_POLL_CQ and AcmHwCtrl to ACM_HW_CTRL and
AcmHw_BeqEn to ACM_HW_BEQ_EN to avoid CamelCase which is not accepted by
checkpatch.
Signed-off-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/f6731b36c0f3f22213436ba01abc8f1c685844ad.1675003608.git.philipp.g.hortmann@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 18e203db
...@@ -76,7 +76,7 @@ bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, const void *data, ...@@ -76,7 +76,7 @@ bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, const void *data,
} while (frag_offset < len); } while (frag_offset < len);
rtl92e_writeb(dev, TP_POLL, TPPoll_CQ); rtl92e_writeb(dev, TP_POLL, TP_POLL_CQ);
Failed: Failed:
return rt_status; return rt_status;
} }
...@@ -216,12 +216,12 @@ void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val) ...@@ -216,12 +216,12 @@ void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val)
union aci_aifsn *pAciAifsn = (union aci_aifsn *)& union aci_aifsn *pAciAifsn = (union aci_aifsn *)&
(qos_parameters->aifs[0]); (qos_parameters->aifs[0]);
u8 acm = pAciAifsn->f.acm; u8 acm = pAciAifsn->f.acm;
u8 AcmCtrl = rtl92e_readb(dev, AcmHwCtrl); u8 AcmCtrl = rtl92e_readb(dev, ACM_HW_CTRL);
if (acm) { if (acm) {
switch (eACI) { switch (eACI) {
case AC0_BE: case AC0_BE:
AcmCtrl |= AcmHw_BeqEn; AcmCtrl |= ACM_HW_BEQ_EN;
break; break;
case AC2_VI: case AC2_VI:
...@@ -235,7 +235,7 @@ void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val) ...@@ -235,7 +235,7 @@ void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val)
} else { } else {
switch (eACI) { switch (eACI) {
case AC0_BE: case AC0_BE:
AcmCtrl &= (~AcmHw_BeqEn); AcmCtrl &= (~ACM_HW_BEQ_EN);
break; break;
case AC2_VI: case AC2_VI:
...@@ -243,14 +243,14 @@ void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val) ...@@ -243,14 +243,14 @@ void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val)
break; break;
case AC3_VO: case AC3_VO:
AcmCtrl &= (~AcmHw_BeqEn); AcmCtrl &= (~ACM_HW_BEQ_EN);
break; break;
default: default:
break; break;
} }
} }
rtl92e_writeb(dev, AcmHwCtrl, AcmCtrl); rtl92e_writeb(dev, ACM_HW_CTRL, AcmCtrl);
break; break;
} }
......
...@@ -129,7 +129,7 @@ enum _RTL8192PCI_HW { ...@@ -129,7 +129,7 @@ enum _RTL8192PCI_HW {
#define IMR_ROK BIT0 #define IMR_ROK BIT0
ISR = 0x0f8, ISR = 0x0f8,
TP_POLL = 0x0fd, TP_POLL = 0x0fd,
#define TPPoll_CQ BIT5 #define TP_POLL_CQ BIT5
PSR = 0x0ff, PSR = 0x0ff,
CPU_GEN = 0x100, CPU_GEN = 0x100,
#define CPU_CCK_LOOPBACK 0x00030000 #define CPU_CCK_LOOPBACK 0x00030000
...@@ -142,8 +142,8 @@ enum _RTL8192PCI_HW { ...@@ -142,8 +142,8 @@ enum _RTL8192PCI_HW {
#define CPU_GEN_PWR_STB_CPU 0x00000004 #define CPU_GEN_PWR_STB_CPU 0x00000004
#define CPU_GEN_NO_LOOPBACK_MSK 0xFFF8FFFF #define CPU_GEN_NO_LOOPBACK_MSK 0xFFF8FFFF
#define CPU_GEN_NO_LOOPBACK_SET 0x00080000 #define CPU_GEN_NO_LOOPBACK_SET 0x00080000
AcmHwCtrl = 0x171, ACM_HW_CTRL = 0x171,
#define AcmHw_BeqEn BIT1 #define ACM_HW_BEQ_EN BIT1
#define AcmHw_ViqEn BIT2 #define AcmHw_ViqEn BIT2
#define AcmHw_VoqEn BIT3 #define AcmHw_VoqEn BIT3
RQPN1 = 0x180, RQPN1 = 0x180,
......
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