]> git.baikalelectronics.ru Git - kernel.git/commit
staging:rtl8192u: Refactor BaseBand_Config_Type - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Sun, 26 Aug 2018 21:14:22 +0000 (22:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Aug 2018 17:27:48 +0000 (19:27 +0200)
commit84bbe3c2a410430dffbfdaeaf587ed766ec6dc71
tree20abb0f989792621f3706ee7f502295604235d98
parentc9980d7f2389baa08489461736291c78699996c4
staging:rtl8192u: Refactor BaseBand_Config_Type - Style

Rename the type to baseband_config_type to clear the checkpatch issue
with CamelCase naming. Remove the 'typedef' directive to clear the
issue with defining new types.

As it is only used in the file r819xU_phy.c the type has been moved
to the r819xU_phy.h file.

The enumerated type is only used as a parameter to the function
rtl8192_phyConfigBB. Previously that parameter used type 'u8' so no
compiler typechecking was being performed. The parameter type has been
corrected.

These changes are coding style changes and as such 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_hw.h
drivers/staging/rtl8192u/r819xU_phy.c
drivers/staging/rtl8192u/r819xU_phy.h