linux-hardened/drivers/staging/rtl8192u
John Whitmore 06761ce429 staging:rtl8192u: Refactor enum dm_ratr_sta_e usage - Style
The enumerated type dm_ratr_sta_e was defined in the file
drivers/staging/rtl8192u/r8192U_dm.h but never actually used in that
file. The only variable which uses this enumerated type is 'ratr_state',
a member variable of the _rate_adaptive structure defined in the file
drivers/staging/rtl8192u/r8192U.h.

To clarify and place the enumerated type close to where it is used the
type was moved to the drivers/staging/rtl8192u/r8192U.h file.

In addition the member variable 'ratr_state' which uses the enumerated
constants was declared as being of type 'u8'. This negates any advantage
of the enumerated type, compiler type-checking, so that member variable's
type has been changed to being of the enumerated type.

The typedef from the enumerated type has been removed to clear the
checkpatch issue with defining new types. Additionally the name of the
type has been left as enum dynamic_ratr_state

This is a coding style change and should have no impact on runtime code
execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-30 11:12:32 +02:00
..
ieee80211 staging:rtl8192u: Remove unused constants - Style 2018-07-30 11:06:04 +02:00
authors
changes
copying
Kconfig Staging: rtl8192u: kconfig: Remove blank help text 2018-02-02 23:53:10 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
r819xU_cmdpkt.c staging:rtl8192u: Remove typedef of cmpk_set_cfg_t - Style 2018-07-30 11:12:32 +02:00
r819xU_cmdpkt.h staging:rtl8192u: Remove typedef of cmpk_set_cfg_t - Style 2018-07-30 11:12:32 +02:00
r819xU_firmware.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
r819xU_firmware.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
r819xU_firmware_img.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
r819xU_firmware_img.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
r819xU_phy.c staging:rtl8192u: Rename eRFPath - Style 2018-07-29 10:13:26 +02:00
r819xU_phy.h staging:rtl8192u: Rename eRFPath - Style 2018-07-29 10:13:26 +02:00
r819xU_phyreg.h staging:rtl8192u: Remove unused RTL8258 bit mask definitions - Style 2018-07-24 14:04:34 +02:00
r8180_93cx6.c Staging: rtl8192u: r8180_93cx6.c - style fix 2017-02-12 13:40:47 +01:00
r8180_93cx6.h staging: rtl8192u: Removed multiple white lines. 2017-01-16 18:08:57 +01:00
r8190_rtl8256.c staging:rtl8192u: Rename RF90_RADIO_PATH_E - Style 2018-07-29 10:13:26 +02:00
r8190_rtl8256.h staging:rtl8192u: rename HT_CHANNEL_WIDTH -> enum ht_channel_width 2018-07-08 17:39:53 +02:00
r8192U.h staging:rtl8192u: Refactor enum dm_ratr_sta_e usage - Style 2018-07-30 11:12:32 +02:00
r8192U_core.c staging:rtl8192u: Rename RF90_RADIO_PATH_E - Style 2018-07-29 10:13:26 +02:00
r8192U_dm.c staging:rtl8192u: Rename member variables - Style 2018-07-30 11:06:04 +02:00
r8192U_dm.h staging:rtl8192u: Refactor enum dm_ratr_sta_e usage - Style 2018-07-30 11:12:32 +02:00
r8192U_hw.h staging: rtl8192u: Fix braces placement and spacing 2017-07-16 08:41:02 +02:00
r8192U_wx.c staging: rtl8192u: make r8192_wx_handlers_def structure const 2017-10-03 18:34:57 +02:00
r8192U_wx.h staging: rtl8192u: make r8192_wx_handlers_def structure const 2017-10-03 18:34:57 +02:00