OSDN Git Service

staging:rtl8192u: Refactor enum DM_CCK_Rx_Path_Method - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Sun, 29 Jul 2018 21:07:47 +0000 (22:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Jul 2018 09:12:32 +0000 (11:12 +0200)
commit1c58e9cc5b56d43b6121792c4b7f81b8dc4463cc
treeae914af968f851268f6cd20f476fba8cb79c3fa6
parentcff3d470010a74b96efc7790a7acc2e908761e64
staging:rtl8192u: Refactor enum DM_CCK_Rx_Path_Method - Style

The enumerated type DM_CCK_Rx_Path_Method is used as a container for
constant definitions, rather then an enumerated type enabling compiler
type checking. To correct this, the variable which uses the constants,
defined by the enumeration, has had its type changed from a u8 to the
enumeration.

Additionally the type has been moved above the structure where the type
is used, to avoid compiler error. The typedef has been removed from the
enumerated type to clear the checkpatch issue with defining new types.
The name of the type has been changed to cck_rx_path_method to clear
the checkpatch issue with CamelCase naming. And the enumerated constant
CCK_Rx_Version_MAX has been removed, since it is never used in code.

The changes are all coding style in nature and so 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>
drivers/staging/rtl8192u/r8192U_dm.h