staging: wilc1000: remove typedef from the struct tstrHostIFkeyAttr
authorTony Cho <tony.cho@atmel.com>
Mon, 21 Sep 2015 03:16:40 +0000 (12:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 05:57:17 +0000 (22:57 -0700)
This patch removes typedef from the struct tstrHostIFkeyAttr and renames
it to key_attr in oder 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 bc31271bd18606fab6a483b8e90178c7a8447e91..12fd43dfeeef0f39be42d90d3cdd608cbda1f6f2 100644 (file)
@@ -136,7 +136,7 @@ typedef union _tuniHostIFkeyAttr {
 } tuniHostIFkeyAttr;
 
 /*!
- *  @struct             tstrHostIFkeyAttr
+ *  @struct             key_attr
  *  @brief             Structure to hold Host IF Scan Attributes
  *  @details
  *  @todo
@@ -145,11 +145,11 @@ typedef union _tuniHostIFkeyAttr {
  *  @date              25 March 2012
  *  @version           1.0
  */
-typedef struct _tstrHostIFkeyAttr {
+struct key_attr {
        tenuKeyType enuKeyType;
        u8 u8KeyAction;
        tuniHostIFkeyAttr uniHostIFkeyAttr;
-} tstrHostIFkeyAttr;
+};
 
 
 
@@ -420,7 +420,7 @@ union message_body {
        struct connect_attr strHostIFconnectAttr;     /*!< Host IF Connect Request Attributes message body */
        struct rcvd_net_info strRcvdNetworkInfo;                 /*!< Received Asynchronous Network Info message body */
        struct rcvd_async_info strRcvdGnrlAsyncInfo;     /*!< Received General Asynchronous Info message body */
-       tstrHostIFkeyAttr strHostIFkeyAttr;                             /*!<>*/
+       struct key_attr strHostIFkeyAttr;                             /*!<>*/
        tstrHostIFCfgParamAttr strHostIFCfgParamAttr;            /*! <CFG Parameter message Body> */
        tstrHostIFSetChan strHostIFSetChan;
        tstrHostIFGetChan strHostIFGetChan;
@@ -2686,13 +2686,14 @@ static s32 Handle_RcvdGnrlAsyncInfo(tstrWILC_WFIDrv *drvHandler,
 /**
  *  @brief Handle_Key
  *  @details       Sending config packet to firmware to set key
- *  @param[in]    tstrHostIFkeyAttr* pstrHostIFkeyAttr
+ *  @param[in]    struct key_attr *pstrHostIFkeyAttr
  *  @return         Error code.
  *  @author
  *  @date
  *  @version   1.0
  */
-static int Handle_Key(tstrWILC_WFIDrv *drvHandler, tstrHostIFkeyAttr *pstrHostIFkeyAttr)
+static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
+                     struct key_attr *pstrHostIFkeyAttr)
 {
        s32 s32Error = 0;
        tstrWID strWID;
This page took 0.029351 seconds and 5 git commands to generate.