From: Larry Finger Date: Wed, 20 Jul 2011 02:17:25 +0000 (-0500) Subject: staging: rtl8192e: Convert typedefs that can be replaced with #define X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~14^2~26 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9de9f962c71ad2c512c40e30b84aca5392a89630;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: rtl8192e: Convert typedefs that can be replaced with #define Signed-off-by: Larry Finger --- diff --git a/drivers/staging/rtl8192e/rtl819x_Qos.h b/drivers/staging/rtl8192e/rtl819x_Qos.h index 59ab0b87227f..0d2f8bff4748 100644 --- a/drivers/staging/rtl8192e/rtl819x_Qos.h +++ b/drivers/staging/rtl8192e/rtl819x_Qos.h @@ -110,7 +110,8 @@ struct octet_string { }; #define MAX_WMMELE_LENGTH 64 -typedef u32 QOS_MODE, *PQOS_MODE; +#define QOS_MODE u32 + #define QOS_DISABLE 0 #define QOS_WMM 1 #define QOS_WMMSA 2 @@ -174,7 +175,8 @@ enum qos_ie_source { }; -typedef u32 AC_CODING; +#define AC_CODING u32 + #define AC0_BE 0 #define AC1_BK 1 #define AC2_VI 2 @@ -237,7 +239,7 @@ struct acm { -typedef u8 AC_UAPSD, *PAC_UAPSD; +#define AC_UAPSD u8 #define GET_VO_UAPSD(_apsd) ((_apsd) & BIT0) #define SET_VO_UAPSD(_apsd) ((_apsd) |= BIT0) diff --git a/drivers/staging/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl_core.h index 462bd73a4952..22b0a438b9dd 100644 --- a/drivers/staging/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl_core.h @@ -80,8 +80,8 @@ .vendor = (vend), .device = (dev), \ .subvendor = PCI_ANY_ID, .subdevice =PCI_ANY_ID , \ .driver_data = (kernel_ulong_t)&(cfg) - typedef irqreturn_t irqreturn_type; +#define irqreturn_type irqreturn_t #define rtl8192_interrupt(x,y,z) rtl8192_interrupt_rsl(x,y) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 63eb5b584376..2ab1e6cb6390 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1910,7 +1910,8 @@ struct rt_pwr_save_ctrl { }; -typedef u32 RT_RF_CHANGE_SOURCE; +#define RT_RF_CHANGE_SOURCE u32 + #define RF_CHANGE_BY_SW BIT31 #define RF_CHANGE_BY_HW BIT30 #define RF_CHANGE_BY_PS BIT29