From patchwork Thu Feb 25 00:15:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8415331 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 42DEA9F88A for ; Thu, 25 Feb 2016 00:16:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A527202F0 for ; Thu, 25 Feb 2016 00:16:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 597D9202EC for ; Thu, 25 Feb 2016 00:16:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758687AbcBYAQY (ORCPT ); Wed, 24 Feb 2016 19:16:24 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:34722 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758606AbcBYAQW (ORCPT ); Wed, 24 Feb 2016 19:16:22 -0500 Received: by mail-pf0-f172.google.com with SMTP id x65so21963034pfb.1 for ; Wed, 24 Feb 2016 16:16:21 -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:in-reply-to:references; bh=/GU9kFI0baxvPUYRXPE+UhGE+RS41QagwaTmsmAF88E=; b=eBjw0yoHE3OJOvAgZzg/XVJwtbhBrcx+PZopql/DIxukQXGyXL5XlwWFOh6GwIOZRf Rp9rjbPDNtkbh2cSUeAzkbdYh1Bx40t0j4k82xaNaTLf3rEjyLUArZhPhlrCjYBm3Mfo 1iIQVAXA3DSShpQLzsD8Tkt3XHjd/zs3CssXZ9PHImmum7AzBS5F7w3Oexa9hNC5DDTh P4KsWtp8fg2Gzqw+KkRrUDnmE/La+m9RYtloEPWGlAFJJukKhw6R6K6uO/duDTNS++DH tbUZZtJL/lUW6OGorv8dob7lT9VCEsNi59NE71qAwCCjvudEMVtOPOmRWzmO1jTkN7uW xLXQ== 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:in-reply-to :references; bh=/GU9kFI0baxvPUYRXPE+UhGE+RS41QagwaTmsmAF88E=; b=PXXW6oCq4mf6u3kS6q0wxkce68cr90LWrSvQcOQqYTYsE9yANCXjJ6tenbrAzypprX R2dpwAVexbyYAHRD5r5h/0rTJmluIyY+802B1Fv8aEk62OrnvJLmMJ7yj6a+GqIb4B36 7kWGA8Kmk8sGxlH4shWvtbThOfgouuMix+7G46yImzNnchBhXNYRET3DebJKTSe8ma0B StRV/eKEFwO/o29OcHN0Y50ln2Lso1vpPdHLvdXHR9VqtHxMSualSyjsJ+AUxf0z+7qO 70ab/dklpheAoSDVvMC6dAOzNkk+utzKg6DIJILrQ8ZMfyX+QQFoPKt/uE7jJTuhN4+j jP/g== X-Gm-Message-State: AG10YOTigUzPEFt+cSM3dXgIrz81c0yZ4ddWbaofRZbT/WKkXRlHgBICD52rmy2cUzHqJw== X-Received: by 10.98.89.215 with SMTP id k84mr59121750pfj.66.1456359381379; Wed, 24 Feb 2016 16:16:21 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id h66sm7476150pfd.91.2016.02.24.16.16.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Feb 2016 16:16:20 -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 8/9] staging: wilc1000: rename struct tstrDisconnectNotifInfo Date: Thu, 25 Feb 2016 09:15:49 +0900 Message-Id: <1456359350-17118-8-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456359350-17118-1-git-send-email-chaehyun.lim@gmail.com> References: <1456359350-17118-1-git-send-email-chaehyun.lim@gmail.com> 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 tstrDisconnectNotifInfo to disconnect_info to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.h | 4 ++-- drivers/staging/wilc1000/host_interface.c | 8 ++++---- drivers/staging/wilc1000/host_interface.h | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.h b/drivers/staging/wilc1000/coreconfigurator.h index 9fbd52b..6256d71 100644 --- a/drivers/staging/wilc1000/coreconfigurator.h +++ b/drivers/staging/wilc1000/coreconfigurator.h @@ -114,11 +114,11 @@ struct connect_info { u16 status; }; -typedef struct { +struct disconnect_info { u16 u16reason; u8 *ie; size_t ie_len; -} tstrDisconnectNotifInfo; +}; s32 wilc_parse_network_info(u8 *msg_buffer, struct network_info **ret_network_info); diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 1ebe08a..4cdd3403 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -1411,7 +1411,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, u8 u8MacStatusReasonCode; u8 u8MacStatusAdditionalInfo; struct connect_info strConnectInfo; - tstrDisconnectNotifInfo strDisconnectNotifInfo; + struct disconnect_info strDisconnectNotifInfo; s32 s32Err = 0; struct host_if_drv *hif_drv = vif->hif_drv; @@ -1545,7 +1545,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, hif_drv->usr_conn_req.ies = NULL; } else if ((u8MacStatus == MAC_DISCONNECTED) && (hif_drv->hif_state == HOST_IF_CONNECTED)) { - memset(&strDisconnectNotifInfo, 0, sizeof(tstrDisconnectNotifInfo)); + memset(&strDisconnectNotifInfo, 0, sizeof(struct disconnect_info)); if (hif_drv->usr_scan_req.scan_result) { del_timer(&hif_drv->scan_timer); @@ -1885,9 +1885,9 @@ static void Handle_Disconnect(struct wilc_vif *vif) if (result) { netdev_err(vif->ndev, "Failed to send dissconect\n"); } else { - tstrDisconnectNotifInfo strDisconnectNotifInfo; + struct disconnect_info strDisconnectNotifInfo; - memset(&strDisconnectNotifInfo, 0, sizeof(tstrDisconnectNotifInfo)); + memset(&strDisconnectNotifInfo, 0, sizeof(struct disconnect_info)); strDisconnectNotifInfo.u16reason = 0; strDisconnectNotifInfo.ie = NULL; diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index f4a3e4f..795c18c 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -174,7 +174,7 @@ typedef void (*wilc_scan_result)(enum scan_event, struct network_info *, typedef void (*wilc_connect_result)(enum conn_event, struct connect_info *, u8, - tstrDisconnectNotifInfo *, + struct disconnect_info *, void *); typedef void (*wilc_remain_on_chan_expired)(void *, u32); diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index c492423..ed34727 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -481,7 +481,7 @@ int wilc_connecting; static void CfgConnectResult(enum conn_event enuConnDisconnEvent, struct connect_info *pstrConnectInfo, u8 u8MacStatus, - tstrDisconnectNotifInfo *pstrDisconnectNotifInfo, + struct disconnect_info *pstrDisconnectNotifInfo, void *pUserVoid) { struct wilc_priv *priv;