Skip to content

Commit

Permalink
staging: rtl8192e: Convert typedef opt_rst_type_e to enum opt_rst_type
Browse files Browse the repository at this point in the history
Remove typedef from enum.
Rename enum.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 24, 2011
1 parent cec0769 commit 6bf0400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/r8192E_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ bool init_firmware(struct net_device *dev)
u32 file_length = 0;
u8 *mapped_file = NULL;
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;

struct rt_firmware *pfirmware = priv->pFirmware;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/rtl8192e/r8192E_firmware.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ enum firmware_init_step {
FW_INIT_STEP2_DATA = 2,
};

typedef enum _opt_rst_type_e{
enum opt_rst_type {
OPT_SYSTEM_RESET = 0,
OPT_FIRMWARE_RESET = 1,
} opt_rst_type_e;
};

typedef enum _desc_packet_type_e{
DESC_PACKET_TYPE_INIT = 0,
Expand Down

0 comments on commit 6bf0400

Please sign in to comment.