From patchwork Thu Feb 25 00:15:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8415261 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 26F4B9F2F0 for ; Thu, 25 Feb 2016 00:16:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 350D6202E6 for ; Thu, 25 Feb 2016 00:16:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 192B2202F0 for ; Thu, 25 Feb 2016 00:16:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753709AbcBYAQC (ORCPT ); Wed, 24 Feb 2016 19:16:02 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:34235 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373AbcBYAQA (ORCPT ); Wed, 24 Feb 2016 19:16:00 -0500 Received: by mail-pa0-f43.google.com with SMTP id fy10so21437828pac.1 for ; Wed, 24 Feb 2016 16:16:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=jabwRIp7ltr8DCgAWzpMNdfuvrvtUSAn+FGnDd1VDSo=; b=09SOaYgdRoC5jsJ/6TAUKD4tqHXjVHnBLjr41TKqzSuWgT+q1DLFEwuszAErM0KDkm NO8XRitcovPzL3zxcZcAI83bqzTpLsns6fyfc9q0lGa4mpoJnkwOWWzKidi2C9aJeYEJ 866+hz0Gk1l/ZjrjuU/PNAgpOYSpOwXqjC7FXAvGw1B6sxCQLQXyei0/zhoBe7VkJqH+ lWzm4dhdLODROckZA1YIXqocMuaZ/XBXwUSGYA79wBm82SAsi49yXxdc6TBGfaiASYWf Ckeg2bejPAN/Z2pDNKZHRU75AOjFrIELWd7k85uUTfP0vxlqytF4nCkW49AxM7mC4KCR uOVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jabwRIp7ltr8DCgAWzpMNdfuvrvtUSAn+FGnDd1VDSo=; b=EFr/axSRi/mg6P4jnvVwVSWWhb0gVS6tvPU4iQ8n2SQ0XugrGl5Ak5xNl8ggiGl7Rv ZvI3nWPIcy3o2uBY+x0IHbfdfsmQGGrHcu6rfU2jGhE+29iY5wPSh5ldUYxxQXmRfDzp Uc1Sy+9J4dhuHcqqIxMWahzrhNz+rPpBsBoM5aCa7u+h+yiuYtIU3Y8/IjWPwSI6M+fK iFkHDy/mc9lH8OWrwu1bO7mJaZjqHZwYfOvO5icCAFzqnzRldNEW19xuZuFhWP7kZa3F 3CgcBQOwfMUs2d59cXCuXGX0vUJ8kcHB9pnJh8M5paCTxIYs6cUxeTCiv5ll/uRi38OV S5Cg== X-Gm-Message-State: AG10YOTdH808IsdDfO8e/FWo5ZKP4wh0MeqCInzSZhrhEtGaSEOFRasn9caCpwmqT/fHqA== X-Received: by 10.67.6.226 with SMTP id cx2mr58605791pad.93.1456359359711; Wed, 24 Feb 2016 16:15:59 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id h66sm7476150pfd.91.2016.02.24.16.15.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Feb 2016 16:15:59 -0800 (PST) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, austin.shin@atmel.com, chris.park@atmel.com, tony.cho@atmel.com, glen.lee@atmel.com, leo.kim@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 1/9] staging: wilc1000: rename struct tstrConnectInfo Date: Thu, 25 Feb 2016 09:15:42 +0900 Message-Id: <1456359350-17118-1-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch renames struct tstrConnectInfo to connect_info to avoid camelcase and removes typedef. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.h | 4 ++-- drivers/staging/wilc1000/host_interface.c | 12 ++++++------ drivers/staging/wilc1000/host_interface.h | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.h b/drivers/staging/wilc1000/coreconfigurator.h index 748199d..0f39bc8 100644 --- a/drivers/staging/wilc1000/coreconfigurator.h +++ b/drivers/staging/wilc1000/coreconfigurator.h @@ -105,14 +105,14 @@ struct connect_resp_info { u16 ies_len; }; -typedef struct { +struct connect_info { u8 au8bssid[6]; u8 *pu8ReqIEs; size_t ReqIEsLen; u8 *pu8RespIEs; u16 u16RespIEsLen; u16 u16ConnectStatus; -} tstrConnectInfo; +}; typedef struct { u16 u16reason; diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 2ace069..b093304 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -1147,11 +1147,11 @@ static s32 Handle_Connect(struct wilc_vif *vif, ERRORHANDLER: if (result) { - tstrConnectInfo strConnectInfo; + struct connect_info strConnectInfo; del_timer(&hif_drv->connect_timer); - memset(&strConnectInfo, 0, sizeof(tstrConnectInfo)); + memset(&strConnectInfo, 0, sizeof(struct connect_info)); if (pstrHostIFconnectAttr->result) { if (pstrHostIFconnectAttr->bssid) @@ -1242,7 +1242,7 @@ static s32 Handle_FlushConnect(struct wilc_vif *vif) static s32 Handle_ConnectTimeout(struct wilc_vif *vif) { s32 result = 0; - tstrConnectInfo strConnectInfo; + struct connect_info strConnectInfo; struct wid wid; u16 u16DummyReasonCode = 0; struct host_if_drv *hif_drv = vif->hif_drv; @@ -1256,7 +1256,7 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif) scan_while_connected = false; - memset(&strConnectInfo, 0, sizeof(tstrConnectInfo)); + memset(&strConnectInfo, 0, sizeof(struct connect_info)); if (hif_drv->usr_conn_req.conn_result) { if (hif_drv->usr_conn_req.bssid) { @@ -1410,7 +1410,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, u8 u8MacStatus; u8 u8MacStatusReasonCode; u8 u8MacStatusAdditionalInfo; - tstrConnectInfo strConnectInfo; + struct connect_info strConnectInfo; tstrDisconnectNotifInfo strDisconnectNotifInfo; s32 s32Err = 0; struct host_if_drv *hif_drv = vif->hif_drv; @@ -1447,7 +1447,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, u32 u32RcvdAssocRespInfoLen = 0; struct connect_resp_info *pstrConnectRespInfo = NULL; - memset(&strConnectInfo, 0, sizeof(tstrConnectInfo)); + memset(&strConnectInfo, 0, sizeof(struct connect_info)); if (u8MacStatus == MAC_CONNECTED) { memset(rcv_assoc_resp, 0, MAX_ASSOC_RESP_FRAME_SIZE); diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index f70ad7a..f4a3e4f 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -172,7 +172,7 @@ typedef void (*wilc_scan_result)(enum scan_event, struct network_info *, void *, void *); typedef void (*wilc_connect_result)(enum conn_event, - tstrConnectInfo *, + struct connect_info *, u8, tstrDisconnectNotifInfo *, void *); diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 21f0f18..52553a5 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -479,7 +479,7 @@ static void CfgScanResult(enum scan_event scan_event, int wilc_connecting; static void CfgConnectResult(enum conn_event enuConnDisconnEvent, - tstrConnectInfo *pstrConnectInfo, + struct connect_info *pstrConnectInfo, u8 u8MacStatus, tstrDisconnectNotifInfo *pstrDisconnectNotifInfo, void *pUserVoid)