linux-hardened/drivers/staging/rtl8192u
John Whitmore e0043d14fc staging:rtl8192u: Refactor use of enum dm_dig_sta_e - Style
Refactor the use of the enumerated type dm_dig_sta_e, which is not
actually used for type checking by the compiler.

The typedef of dm_dig_sta_e is removed to clear the checkpatch issue
with defining new types, and the enumerated type is left with the name
enum dynamic_init_gain_state

The enumerated type defines values for the enumeration, which are used
by both dig_state and dig_highpwr_state, (members of the struct dig).
Both of those variables were defined as being of type u8. This negates
any usefulness of the use of the enumeration, (compiler type checking).

To make use of the compiler's type-checking the two member variables,
dig_state and dig_highpwr_state have been changed to being of type
enum dynamic_init_gain_state. The enumerated type has been moved above
the struct dig definition so that the enumeration is already defined
when the compiler reaches the two types using the enumerated type.

These changes, whilst convoluted, are purely coding style in nature and
should not impact 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: Rename file macro to avoid camel case - Coding Style 2018-07-13 15:41:17 +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 use of enum dm_dig_sta_e - 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