staging: wilc1000: remove typedef from the struct tstrHostIFSetMulti
authorTony Cho <tony.cho@atmel.com>
Mon, 21 Sep 2015 03:16:52 +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 tstrHostIFSetMulti and
renames it to set_multicast 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

index 64d614abc5ab303ba40f1e072e588be81c960947..05f8db9e44d6643c1e381e03a24ac0e202ea5acb 100644 (file)
@@ -297,7 +297,7 @@ struct del_beacon {
 };
 
 /*!
- *  @struct             tstrHostIFSetMulti
+ *  @struct             set_multicast
  *  @brief             set Multicast filter Address
  *  @details
  *  @todo
@@ -307,10 +307,10 @@ struct del_beacon {
  *  @version           1.0 Description
  */
 
-typedef struct {
+struct set_multicast {
        bool bIsEnabled;
        u32 u32count;
-} tstrHostIFSetMulti;
+};
 
 /*!
  *  @struct             tstrHostIFDelAllSta
@@ -432,7 +432,7 @@ union message_body {
        struct sta_inactive_t strHostIfStaInactiveT;
        struct set_ip_addr strHostIfSetIP;
        struct drv_handler strHostIfSetDrvHandler;
-       tstrHostIFSetMulti strHostIfSetMulti;
+       struct set_multicast strHostIfSetMulti;
        tstrHostIfSetOperationMode strHostIfSetOperationMode;
        tstrHostIfSetMacAddress strHostIfSetMacAddress;
        tstrHostIfGetMacAddress strHostIfGetMacAddress;
@@ -4021,13 +4021,14 @@ static void Handle_PowerManagement(tstrWILC_WFIDrv *drvHandler,
 /**
  *  @brief Handle_SetMulticastFilter
  *  @details        Set Multicast filter in firmware
- *  @param[in]   tstrHostIFSetMulti* strHostIfSetMulti
+ *  @param[in]   struct set_multicast *strHostIfSetMulti
  *  @return         NONE
  *  @author            asobhy
  *  @date
  *  @version   1.0
  */
-static void Handle_SetMulticastFilter(tstrWILC_WFIDrv *drvHandler, tstrHostIFSetMulti *strHostIfSetMulti)
+static void Handle_SetMulticastFilter(tstrWILC_WFIDrv *drvHandler,
+                                     struct set_multicast *strHostIfSetMulti)
 {
        s32 s32Error = 0;
        tstrWID strWID;
@@ -4037,7 +4038,7 @@ static void Handle_SetMulticastFilter(tstrWILC_WFIDrv *drvHandler, tstrHostIFSet
 
        strWID.u16WIDid = (u16)WID_SETUP_MULTICAST_FILTER;
        strWID.enuWIDtype = WID_BIN;
-       strWID.s32ValueSize = sizeof(tstrHostIFSetMulti) + ((strHostIfSetMulti->u32count) * ETH_ALEN);
+       strWID.s32ValueSize = sizeof(struct set_multicast) + ((strHostIfSetMulti->u32count) * ETH_ALEN);
        strWID.ps8WidVal = kmalloc(strWID.s32ValueSize, GFP_KERNEL);
        if (strWID.ps8WidVal == NULL)
                goto ERRORHANDLER;
@@ -7252,7 +7253,7 @@ s32 host_int_setup_multicast_filter(tstrWILC_WFIDrv *hWFIDrv, bool bIsEnabled, u
 
        tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
        struct host_if_msg msg;
-       tstrHostIFSetMulti *pstrMulticastFilterParam = &msg.body.strHostIfSetMulti;
+       struct set_multicast *pstrMulticastFilterParam = &msg.body.strHostIfSetMulti;
 
 
        if (pstrWFIDrv == NULL) {
This page took 0.028903 seconds and 5 git commands to generate.