Commit 2c226ff1 authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman

staging:rtl8192u: Remove typedef from firmware_init_step_e - Style

Remove the typedef directive from enumerated type firmware_init_step_e
this clears the checkpatch issue with adding new types to the code.

This is a coding style change 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 6b525447
...@@ -209,7 +209,7 @@ bool init_firmware(struct net_device *dev) ...@@ -209,7 +209,7 @@ bool init_firmware(struct net_device *dev)
u8 *mapped_file = NULL; u8 *mapped_file = NULL;
u32 init_step = 0; u32 init_step = 0;
opt_rst_type_e rst_opt = OPT_SYSTEM_RESET; opt_rst_type_e rst_opt = OPT_SYSTEM_RESET;
firmware_init_step_e starting_state = FW_INIT_STEP0_BOOT; enum firmware_init_step_e starting_state = FW_INIT_STEP0_BOOT;
rt_firmware *pfirmware = priv->pFirmware; rt_firmware *pfirmware = priv->pFirmware;
const struct firmware *fw_entry; const struct firmware *fw_entry;
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
#define GET_COMMAND_PACKET_FRAG_THRESHOLD(v) \ #define GET_COMMAND_PACKET_FRAG_THRESHOLD(v) \
(4 * ((v) / 4) - 8 - USB_HWDESC_HEADER_LEN) (4 * ((v) / 4) - 8 - USB_HWDESC_HEADER_LEN)
typedef enum _firmware_init_step { enum firmware_init_step_e {
FW_INIT_STEP0_BOOT = 0, FW_INIT_STEP0_BOOT = 0,
FW_INIT_STEP1_MAIN = 1, FW_INIT_STEP1_MAIN = 1,
FW_INIT_STEP2_DATA = 2, FW_INIT_STEP2_DATA = 2,
} firmware_init_step_e; };
typedef enum _opt_rst_type { typedef enum _opt_rst_type {
OPT_SYSTEM_RESET = 0, OPT_SYSTEM_RESET = 0,
......
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