]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wilc1000: remove typedef from the struct tstrHostIfSetDrvHandler
authorTony Cho <tony.cho@atmel.com>
Mon, 21 Sep 2015 03:16:51 +0000 (12:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 06:00:26 +0000 (23:00 -0700)
This patch removes typedef from the struct tstrHostIfSetDrvHandler and
renames it to drv_handler 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 7b9f78a7316921b650bae7111bd557a81afed6c4..64d614abc5ab303ba40f1e072e588be81c960947 100644 (file)
@@ -431,7 +431,7 @@ union message_body {
        struct power_mgmt_param strPowerMgmtparam;     /*!< Power Management message body */
        struct sta_inactive_t strHostIfStaInactiveT;
        struct set_ip_addr strHostIfSetIP;
-       tstrHostIfSetDrvHandler strHostIfSetDrvHandler;
+       struct drv_handler strHostIfSetDrvHandler;
        tstrHostIFSetMulti strHostIfSetMulti;
        tstrHostIfSetOperationMode strHostIfSetOperationMode;
        tstrHostIfSetMacAddress strHostIfSetMacAddress;
@@ -660,14 +660,15 @@ static s32 Handle_SetChannel(tstrWILC_WFIDrv *drvHandler,
 /**
  *  @brief Handle_SetWfiDrvHandler
  *  @details    Sending config packet to firmware to set driver handler
- *  @param[in]   void * drvHandler,tstrHostIfSetDrvHandler* pstrHostIfSetDrvHandler
+ *  @param[in]   void * drvHandler,
+ *              struct drv_handler *pstrHostIfSetDrvHandler
  *  @return     Error code.
  *  @author
  *  @date
  *  @version   1.0
  */
 static s32 Handle_SetWfiDrvHandler(tstrWILC_WFIDrv *drvHandler,
-                                  tstrHostIfSetDrvHandler *pstrHostIfSetDrvHandler)
+                                  struct drv_handler *pstrHostIfSetDrvHandler)
 {
 
        s32 s32Error = 0;
index b24eeb6841cbaaf8af2ef05aaab0827493e05e43..dc6fe73707c867a7e163f4ecd5f11ea1c17cce6f 100644 (file)
@@ -255,9 +255,9 @@ typedef struct {
        void *u32UserConnectPvoid;
 } tstrWILC_UsrConnReq;
 
-typedef struct {
+struct drv_handler {
        u32 u32Address;
-} tstrHostIfSetDrvHandler;
+};
 
 typedef struct {
        u32 u32Mode;