Commit 6bf04003 authored by Larry Finger's avatar Larry Finger

staging: rtl8192e: Convert typedef opt_rst_type_e to enum opt_rst_type

Remove typedef from enum.
Rename enum.
Rename uses.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent cec07695
...@@ -266,7 +266,7 @@ bool init_firmware(struct net_device *dev) ...@@ -266,7 +266,7 @@ bool init_firmware(struct net_device *dev)
u32 file_length = 0; u32 file_length = 0;
u8 *mapped_file = NULL; u8 *mapped_file = NULL;
u8 init_step = 0; u8 init_step = 0;
opt_rst_type_e rst_opt = OPT_SYSTEM_RESET; enum opt_rst_type rst_opt = OPT_SYSTEM_RESET;
enum firmware_init_step starting_state = FW_INIT_STEP0_BOOT; enum firmware_init_step starting_state = FW_INIT_STEP0_BOOT;
struct rt_firmware *pfirmware = priv->pFirmware; struct rt_firmware *pfirmware = priv->pFirmware;
......
...@@ -29,10 +29,10 @@ enum firmware_init_step { ...@@ -29,10 +29,10 @@ enum firmware_init_step {
FW_INIT_STEP2_DATA = 2, FW_INIT_STEP2_DATA = 2,
}; };
typedef enum _opt_rst_type_e{ enum opt_rst_type {
OPT_SYSTEM_RESET = 0, OPT_SYSTEM_RESET = 0,
OPT_FIRMWARE_RESET = 1, OPT_FIRMWARE_RESET = 1,
} opt_rst_type_e; };
typedef enum _desc_packet_type_e{ typedef enum _desc_packet_type_e{
DESC_PACKET_TYPE_INIT = 0, DESC_PACKET_TYPE_INIT = 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