Commit a85adbb5 authored by Caleb D.S. Brzezinski's avatar Caleb D.S. Brzezinski Committed by Greg Kroah-Hartman

staging: ks7010: Wrap macro definitions in parenthesis

Wrap the definition of TX_RATE_* constants in parenthesis to prevent
incorrect casting during expansion, as recommended by checkpatch.pl.
Signed-off-by: default avatarCaleb D.S. Brzezinski <calebdsb@protonmail.com>
Link: https://lore.kernel.org/r/20210616212552.117604-1-calebdsb@protonmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 609e9339
...@@ -498,20 +498,20 @@ struct hostif_mic_failure_request { ...@@ -498,20 +498,20 @@ struct hostif_mic_failure_request {
#define TX_RATE_FIXED 5 #define TX_RATE_FIXED 5
/* 11b rate */ /* 11b rate */
#define TX_RATE_1M (u8)(10 / 5) /* 11b 11g basic rate */ #define TX_RATE_1M ((u8)(10 / 5)) /* 11b 11g basic rate */
#define TX_RATE_2M (u8)(20 / 5) /* 11b 11g basic rate */ #define TX_RATE_2M ((u8)(20 / 5)) /* 11b 11g basic rate */
#define TX_RATE_5M (u8)(55 / 5) /* 11g basic rate */ #define TX_RATE_5M ((u8)(55 / 5)) /* 11g basic rate */
#define TX_RATE_11M (u8)(110 / 5) /* 11g basic rate */ #define TX_RATE_11M ((u8)(110 / 5)) /* 11g basic rate */
/* 11g rate */ /* 11g rate */
#define TX_RATE_6M (u8)(60 / 5) /* 11g basic rate */ #define TX_RATE_6M ((u8)(60 / 5)) /* 11g basic rate */
#define TX_RATE_12M (u8)(120 / 5) /* 11g basic rate */ #define TX_RATE_12M ((u8)(120 / 5)) /* 11g basic rate */
#define TX_RATE_24M (u8)(240 / 5) /* 11g basic rate */ #define TX_RATE_24M ((u8)(240 / 5)) /* 11g basic rate */
#define TX_RATE_9M (u8)(90 / 5) #define TX_RATE_9M ((u8)(90 / 5))
#define TX_RATE_18M (u8)(180 / 5) #define TX_RATE_18M ((u8)(180 / 5))
#define TX_RATE_36M (u8)(360 / 5) #define TX_RATE_36M ((u8)(360 / 5))
#define TX_RATE_48M (u8)(480 / 5) #define TX_RATE_48M ((u8)(480 / 5))
#define TX_RATE_54M (u8)(540 / 5) #define TX_RATE_54M ((u8)(540 / 5))
static inline bool is_11b_rate(u8 rate) static inline bool is_11b_rate(u8 rate)
{ {
......
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