staging: wilc1000: remove typedef from the struct tstrHostIfBASessionInfo
authorTony Cho <tony.cho@atmel.com>
Mon, 21 Sep 2015 03:16:56 +0000 (12:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 06:00:27 +0000 (23:00 -0700)
This patch removes typedef from the struct tstrHostIfBASessionInfo and
renames it to ba_session_info in order to comply with the Linux coding
style.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h

index 7c5b49c165ef4b9b9c1beab60b93c86d5ec76825..4ce981b39a4967c98217c8cddfa94bf6aa3d4dee 100644 (file)
@@ -436,7 +436,7 @@ union message_body {
        struct op_mode strHostIfSetOperationMode;
        struct set_mac_addr strHostIfSetMacAddress;
        struct get_mac_addr strHostIfGetMacAddress;
-       tstrHostIfBASessionInfo strHostIfBASessionInfo;
+       struct ba_session_info strHostIfBASessionInfo;
        tstrHostIfRemainOnChan strHostIfRemainOnChan;
        tstrHostIfRegisterFrame strHostIfRegisterFrame;
        char *pUserData;
@@ -4081,7 +4081,8 @@ ERRORHANDLER:
  *  @date                      Feb. 2014
  *  @version           9.0
  */
-static s32 Handle_AddBASession(tstrWILC_WFIDrv *drvHandler, tstrHostIfBASessionInfo *strHostIfBASessionInfo)
+static s32 Handle_AddBASession(tstrWILC_WFIDrv *drvHandler,
+                              struct ba_session_info *strHostIfBASessionInfo)
 {
        s32 s32Error = 0;
        tstrWID strWID;
@@ -4170,7 +4171,8 @@ static s32 Handle_AddBASession(tstrWILC_WFIDrv *drvHandler, tstrHostIfBASessionI
  *  @date                      Feb. 2013
  *  @version           9.0
  */
-static s32 Handle_DelBASession(tstrWILC_WFIDrv *drvHandler, tstrHostIfBASessionInfo *strHostIfBASessionInfo)
+static s32 Handle_DelBASession(tstrWILC_WFIDrv *drvHandler,
+                              struct ba_session_info *strHostIfBASessionInfo)
 {
        s32 s32Error = 0;
        tstrWID strWID;
@@ -4241,7 +4243,8 @@ static s32 Handle_DelBASession(tstrWILC_WFIDrv *drvHandler, tstrHostIfBASessionI
  *  @date                      Feb. 2013
  *  @version           9.0
  */
-static s32 Handle_DelAllRxBASessions(tstrWILC_WFIDrv *drvHandler, tstrHostIfBASessionInfo *strHostIfBASessionInfo)
+static s32 Handle_DelAllRxBASessions(tstrWILC_WFIDrv *drvHandler,
+                                    struct ba_session_info *strHostIfBASessionInfo)
 {
        s32 s32Error = 0;
        tstrWID strWID;
@@ -7521,7 +7524,7 @@ static int host_int_addBASession(tstrWILC_WFIDrv *hWFIDrv, char *pBSSID, char TI
        s32 s32Error = 0;
        tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
        struct host_if_msg msg;
-       tstrHostIfBASessionInfo *pBASessionInfo = &msg.body.strHostIfBASessionInfo;
+       struct ba_session_info *pBASessionInfo = &msg.body.strHostIfBASessionInfo;
 
        if (pstrWFIDrv == NULL) {
                PRINT_ER("driver is null\n");
@@ -7552,7 +7555,7 @@ s32 host_int_delBASession(tstrWILC_WFIDrv *hWFIDrv, char *pBSSID, char TID)
        s32 s32Error = 0;
        tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
        struct host_if_msg msg;
-       tstrHostIfBASessionInfo *pBASessionInfo = &msg.body.strHostIfBASessionInfo;
+       struct ba_session_info *pBASessionInfo = &msg.body.strHostIfBASessionInfo;
 
        if (pstrWFIDrv == NULL) {
                PRINT_ER("driver is null\n");
@@ -7582,7 +7585,7 @@ s32 host_int_del_All_Rx_BASession(tstrWILC_WFIDrv *hWFIDrv, char *pBSSID, char T
        s32 s32Error = 0;
        tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
        struct host_if_msg msg;
-       tstrHostIfBASessionInfo *pBASessionInfo = &msg.body.strHostIfBASessionInfo;
+       struct ba_session_info *pBASessionInfo = &msg.body.strHostIfBASessionInfo;
 
        if (pstrWFIDrv == NULL) {
                PRINT_ER("driver is null\n");
index c8b482fa3c2c62adf5b2c0c99cf0ce3f7b80fa6d..aba00f115f44bb334cb07af598f541f0f13e806a 100644 (file)
@@ -271,12 +271,12 @@ struct get_mac_addr {
        u8 *u8MacAddress;
 };
 
-typedef struct {
+struct ba_session_info {
        u8 au8Bssid[ETH_ALEN];
        u8 u8Ted;
        u16 u16BufferSize;
        u16 u16SessionTimeout;
-} tstrHostIfBASessionInfo;
+};
 
 typedef struct {
        u16 u16Channel;