From patchwork Fri Sep 18 09:11:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Cho X-Patchwork-Id: 7214491 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 E568F9F380 for ; Fri, 18 Sep 2015 09:14:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CEC7207A6 for ; Fri, 18 Sep 2015 09:14:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1738C207A4 for ; Fri, 18 Sep 2015 09:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753313AbbIRJOW (ORCPT ); Fri, 18 Sep 2015 05:14:22 -0400 Received: from eusmtp01.atmel.com ([212.144.249.242]:45634 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752940AbbIRJOV (ORCPT ); Fri, 18 Sep 2015 05:14:21 -0400 Received: from tony-itx.corp.atmel.com (10.161.101.13) by eusmtp01.atmel.com (10.161.101.30) with Microsoft SMTP Server id 14.3.235.1; Fri, 18 Sep 2015 11:14:13 +0200 From: Tony Cho To: CC: , , , , , , , , , , , Subject: [PATCH 23/34] staging: wilc1000: remove typedef from the struct tstrHostIFSetMulti Date: Fri, 18 Sep 2015 18:11:25 +0900 Message-ID: <1442567496-29331-23-git-send-email-tony.cho@atmel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442567496-29331-1-git-send-email-tony.cho@atmel.com> References: <1442567496-29331-1-git-send-email-tony.cho@atmel.com> MIME-Version: 1.0 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 removes typedef from the struct tstrHostIFSetMulti and renames it to set_multicast in order to comply with the Linux coding style. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/host_interface.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 80527b5..c484619 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -299,7 +299,7 @@ struct del_beacon { }; /*! - * @struct tstrHostIFSetMulti + * @struct set_multicast * @brief set Multicast filter Address * @details * @todo @@ -309,10 +309,10 @@ struct del_beacon { * @version 1.0 Description */ -typedef struct { +struct set_multicast { bool bIsEnabled; u32 u32count; -} tstrHostIFSetMulti; +}; /*! * @struct tstrHostIFDelAllSta @@ -434,7 +434,7 @@ union message_body { struct sta_inactive_t strHostIfStaInactiveT; struct set_ip_addr strHostIfSetIP; struct drv_handler strHostIfSetDrvHandler; - tstrHostIFSetMulti strHostIfSetMulti; + struct set_multicast strHostIfSetMulti; tstrHostIfSetOperationMode strHostIfSetOperationMode; tstrHostIfSetMacAddress strHostIfSetMacAddress; tstrHostIfGetMacAddress strHostIfGetMacAddress; @@ -4050,13 +4050,14 @@ static void Handle_PowerManagement(tstrWILC_WFIDrv *drvHandler, /** * @brief Handle_SetMulticastFilter * @details Set Multicast filter in firmware - * @param[in] tstrHostIFSetMulti* strHostIfSetMulti + * @param[in] struct set_multicast *strHostIfSetMulti * @return NONE * @author asobhy * @date * @version 1.0 */ -static void Handle_SetMulticastFilter(tstrWILC_WFIDrv *drvHandler, tstrHostIFSetMulti *strHostIfSetMulti) +static void Handle_SetMulticastFilter(tstrWILC_WFIDrv *drvHandler, + struct set_multicast *strHostIfSetMulti) { s32 s32Error = 0; tstrWID strWID; @@ -4066,7 +4067,7 @@ static void Handle_SetMulticastFilter(tstrWILC_WFIDrv *drvHandler, tstrHostIFSet strWID.u16WIDid = (u16)WID_SETUP_MULTICAST_FILTER; strWID.enuWIDtype = WID_BIN; - strWID.s32ValueSize = sizeof(tstrHostIFSetMulti) + ((strHostIfSetMulti->u32count) * ETH_ALEN); + strWID.s32ValueSize = sizeof(struct set_multicast) + ((strHostIfSetMulti->u32count) * ETH_ALEN); strWID.ps8WidVal = kmalloc(strWID.s32ValueSize, GFP_KERNEL); if (strWID.ps8WidVal == NULL) goto ERRORHANDLER; @@ -7301,7 +7302,7 @@ s32 host_int_setup_multicast_filter(tstrWILC_WFIDrv *hWFIDrv, bool bIsEnabled, u tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv; struct host_if_msg msg; - tstrHostIFSetMulti *pstrMulticastFilterParam = &msg.body.strHostIfSetMulti; + struct set_multicast *pstrMulticastFilterParam = &msg.body.strHostIfSetMulti; if (pstrWFIDrv == NULL) {