summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/host_interface.c
diff options
context:
space:
mode:
authorTony Cho2015-09-21 05:16:37 +0200
committerGreg Kroah-Hartman2015-09-21 07:57:16 +0200
commit120ae59385cc744c9ae6a2054f2b90cfdfb45f9e (patch)
tree1b5e957c1e60b35ff26e79076cad0da07ee9057e /drivers/staging/wilc1000/host_interface.c
parentstaging: wilc1000: remove typedef from the struct tstrHostIFscanAttr (diff)
downloadkernel-qcow2-linux-120ae59385cc744c9ae6a2054f2b90cfdfb45f9e.tar.gz
kernel-qcow2-linux-120ae59385cc744c9ae6a2054f2b90cfdfb45f9e.tar.xz
kernel-qcow2-linux-120ae59385cc744c9ae6a2054f2b90cfdfb45f9e.zip
staging: wilc1000: remove typedef from the struct tstrHostIFconnectAttr
This patch removes typedef from the struct tstrHostIFconnectAttr and renames it to connect_attr 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>
Diffstat (limited to 'drivers/staging/wilc1000/host_interface.c')
-rw-r--r--drivers/staging/wilc1000/host_interface.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 7c36924f7cec..2fb7d3e6fda4 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -177,7 +177,7 @@ struct scan_attr {
};
/*!
- * @struct tstrHostIFconnectAttr
+ * @struct connect_attr
* @brief Structure to hold Host IF Connect Attributes
* @details
* @todo
@@ -186,7 +186,7 @@ struct scan_attr {
* @date 25 March 2012
* @version 1.0
*/
-typedef struct _tstrHostIFconnectAttr {
+struct connect_attr {
u8 *pu8bssid;
u8 *pu8ssid;
size_t ssidLen;
@@ -198,7 +198,7 @@ typedef struct _tstrHostIFconnectAttr {
AUTHTYPE_T tenuAuth_type;
u8 u8channel;
void *pJoinParams;
-} tstrHostIFconnectAttr;
+};
/*!
* @struct tstrRcvdGnrlAsyncInfo
@@ -417,7 +417,7 @@ typedef struct {
*/
union message_body {
struct scan_attr strHostIFscanAttr; /*!< Host IF Scan Request Attributes message body */
- tstrHostIFconnectAttr strHostIFconnectAttr; /*!< Host IF Connect Request Attributes message body */
+ struct connect_attr strHostIFconnectAttr; /*!< Host IF Connect Request Attributes message body */
tstrRcvdNetworkInfo strRcvdNetworkInfo; /*!< Received Asynchronous Network Info message body */
tstrRcvdGnrlAsyncInfo strRcvdGnrlAsyncInfo; /*!< Received General Asynchronous Info message body */
tstrHostIFkeyAttr strHostIFkeyAttr; /*!<>*/
@@ -1500,14 +1500,15 @@ static s32 Handle_ScanDone(tstrWILC_WFIDrv *drvHandler, tenuScanEvent enuEvent)
/**
* @brief Handle_Connect
* @details Sending config packet to firmware to starting connection
- * @param[in] tstrHostIFconnectAttr* pstrHostIFconnectAttr
+ * @param[in] struct connect_attr *pstrHostIFconnectAttr
* @return Error code.
* @author
* @date
* @version 1.0
*/
u8 u8ConnectedSSID[6] = {0};
-static s32 Handle_Connect(tstrWILC_WFIDrv *drvHandler, tstrHostIFconnectAttr *pstrHostIFconnectAttr)
+static s32 Handle_Connect(tstrWILC_WFIDrv *drvHandler,
+ struct connect_attr *pstrHostIFconnectAttr)
{
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *) drvHandler;
s32 s32Error = 0;