[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220103190326.363960-11-alb3rt0.m3rciai@gmail.com>
Date: Mon, 3 Jan 2022 20:01:45 +0100
From: Alberto Merciai <alb3rt0.m3rciai@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: alb3rt0.m3rciai@...il.com, linuxfancy@...glegroups.com,
Larry Finger <Larry.Finger@...inger.net>,
Phillip Potter <phil@...lpotter.co.uk>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Michael Straube <straube.linux@...il.com>,
Martin Kaiser <martin@...ser.cx>,
"Fabio M. De Francesco" <fmdefrancesco@...il.com>,
Nathan Chancellor <nathan@...nel.org>,
Dan Carpenter <dan.carpenter@...cle.com>,
Saurav Girepunje <saurav.girepunje@...il.com>,
Ivan Safonov <insafonov@...il.com>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Zameer Manji <zmanji@...il.com>, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH 10/56] staging: r8188eu: rename camelcase GetFrDs to get_fr_ds
Rename camel case macro GetFrDs into get_fr_ds.
Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@...il.com>
---
drivers/staging/r8188eu/include/wifi.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/r8188eu/include/wifi.h b/drivers/staging/r8188eu/include/wifi.h
index 0075b438027b..355c8f854b08 100644
--- a/drivers/staging/r8188eu/include/wifi.h
+++ b/drivers/staging/r8188eu/include/wifi.h
@@ -171,9 +171,9 @@ enum WIFI_REG_DOMAIN {
#define set_fr_ds(pbuf) \
(*(__le16 *)(pbuf) |= cpu_to_le16(_FROM_DS_))
-#define GetFrDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0)
+#define get_fr_ds(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0)
-#define get_tofr_ds(pframe) ((get_to_ds(pframe) << 1) | GetFrDs(pframe))
+#define get_tofr_ds(pframe) ((get_to_ds(pframe) << 1) | get_fr_ds(pframe))
#define set_m_frag(pbuf) \
(*(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_))
@@ -286,7 +286,7 @@ enum WIFI_REG_DOMAIN {
#define GetAid(pbuf) (le16_to_cpu(*(__le16 *)((size_t)(pbuf) + 2)) & 0x3fff)
#define GetTid(pbuf) (le16_to_cpu(*(__le16 *)((size_t)(pbuf) + \
- (((get_to_ds(pbuf)<<1) | GetFrDs(pbuf)) == 3 ? \
+ (((get_to_ds(pbuf)<<1) | get_fr_ds(pbuf)) == 3 ? \
30 : 24))) & 0x000f)
#define GetAddr1Ptr(pbuf) ((unsigned char *)((size_t)(pbuf) + 4))
@@ -308,7 +308,7 @@ static inline int IS_MCAST(unsigned char *da)
static inline unsigned char *get_da(unsigned char *pframe)
{
unsigned char *da;
- unsigned int to_fr_ds = (get_to_ds(pframe) << 1) | GetFrDs(pframe);
+ unsigned int to_fr_ds = (get_to_ds(pframe) << 1) | get_fr_ds(pframe);
switch (to_fr_ds) {
case 0x00: /* ToDs=0, FromDs=0 */
@@ -330,7 +330,7 @@ static inline unsigned char *get_da(unsigned char *pframe)
static inline unsigned char *get_sa(unsigned char *pframe)
{
unsigned char *sa;
- unsigned int to_fr_ds = (get_to_ds(pframe) << 1) | GetFrDs(pframe);
+ unsigned int to_fr_ds = (get_to_ds(pframe) << 1) | get_fr_ds(pframe);
switch (to_fr_ds) {
case 0x00: /* ToDs=0, FromDs=0 */
@@ -352,7 +352,7 @@ static inline unsigned char *get_sa(unsigned char *pframe)
static inline unsigned char *get_hdr_bssid(unsigned char *pframe)
{
unsigned char *sa;
- unsigned int to_fr_ds = (get_to_ds(pframe) << 1) | GetFrDs(pframe);
+ unsigned int to_fr_ds = (get_to_ds(pframe) << 1) | get_fr_ds(pframe);
switch (to_fr_ds) {
case 0x00: /* ToDs=0, FromDs=0 */
--
2.25.1
Powered by blists - more mailing lists