Commit 489d5cd8 authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman

staging:rtl8192u: Rename enum DIRECTION_VALUE - Style

The enumerated type DIRECTION_VALUE should be named in lowercase to
comply with coding standard so is renamed to direction_value. In
addition the 'typedef' directive has been removed to clear the
checkpatch issue with defining new types.

These changes are coding style changes which should have no impact on
runtime code execution.
Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 15321170
...@@ -28,12 +28,12 @@ union aci_aifsn { ...@@ -28,12 +28,12 @@ union aci_aifsn {
// Direction Field Values. // Direction Field Values.
// Ref: WMM spec 2.2.11: WME TSPEC Element, p.18. // Ref: WMM spec 2.2.11: WME TSPEC Element, p.18.
// //
typedef enum _DIRECTION_VALUE { enum direction_value {
DIR_UP = 0, // 0x00 // UpLink DIR_UP = 0, // 0x00 // UpLink
DIR_DOWN = 1, // 0x01 // DownLink DIR_DOWN = 1, // 0x01 // DownLink
DIR_DIRECT = 2, // 0x10 // DirectLink DIR_DIRECT = 2, // 0x10 // DirectLink
DIR_BI_DIR = 3, // 0x11 // Bi-Direction DIR_BI_DIR = 3, // 0x11 // Bi-Direction
} DIRECTION_VALUE, *PDIRECTION_VALUE; };
// //
......
...@@ -366,7 +366,7 @@ bool GetTs( ...@@ -366,7 +366,7 @@ bool GetTs(
(&ieee->Tx_TS_Admit_List): (&ieee->Tx_TS_Admit_List):
(&ieee->Rx_TS_Admit_List); (&ieee->Rx_TS_Admit_List);
DIRECTION_VALUE Dir = (ieee->iw_mode == IW_MODE_MASTER)? enum direction_value Dir = (ieee->iw_mode == IW_MODE_MASTER)?
((TxRxSelect==TX_DIR)?DIR_DOWN:DIR_UP): ((TxRxSelect==TX_DIR)?DIR_DOWN:DIR_UP):
((TxRxSelect==TX_DIR)?DIR_UP:DIR_DOWN); ((TxRxSelect==TX_DIR)?DIR_UP:DIR_DOWN);
IEEE80211_DEBUG(IEEE80211_DL_TS, "to add Ts\n"); IEEE80211_DEBUG(IEEE80211_DL_TS, "to add Ts\n");
......
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