]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8192e: Convert typedef RT_OP_MODE to enum rt_op_mode
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 20 Jul 2011 01:24:49 +0000 (20:24 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 15:52:52 +0000 (10:52 -0500)
Remove typedef from enum.
Rename enum.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtllib.h

index 0c06e7b84408eaf1200d7ecaf896d95f842c5950..cb894b6d2e75dcb98270729d013825bb33c23be4 100644 (file)
@@ -109,7 +109,7 @@ rtl8192e_SetHwReg(struct net_device *dev,u8 variable,u8* val)
 
                case HW_VAR_MEDIA_STATUS:
                {
-                       RT_OP_MODE      OpMode = *((RT_OP_MODE *)(val));
+                       enum rt_op_mode OpMode = *((enum rt_op_mode *)(val));
                        LED_CTL_MODE    LedAction = LED_CTL_NO_LINK;
                        u8              btMsr = read_nic_byte(dev, MSR);
 
index a27c58f203b6d41fabdf138e0eadaff63a752f04..8fc3056f369fd4344721fafd876e41cb37fd3d6c 100644 (file)
@@ -403,12 +403,12 @@ enum hw_variables {
         HW_VAR_RF_TIMING,
 };
 
-typedef enum _RT_OP_MODE{
+enum rt_op_mode {
        RT_OP_MODE_AP,
        RT_OP_MODE_INFRASTRUCTURE,
        RT_OP_MODE_IBSS,
        RT_OP_MODE_NO_LINK,
-} RT_OP_MODE, *PRT_OP_MODE;
+};
 
 
 #define aSifsTime       (((priv->rtllib->current_network.mode == IEEE_A)||(priv->rtllib->current_network.mode == IEEE_N_24G)||(priv->rtllib->current_network.mode == IEEE_N_5G))? 16 : 10)
@@ -2099,7 +2099,7 @@ struct rtllib_device {
        u8 hwscan_sem_up;
        u8      CntAfterLink;
 
-       RT_OP_MODE      OpMode;
+       enum rt_op_mode OpMode;
 
        u8 VersionID;
        /* The last AssocReq/Resp IEs */