From patchwork Mon Sep 21 03:16:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Cho X-Patchwork-Id: 7227221 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 2E9D29F40A for ; Mon, 21 Sep 2015 03:18:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 53F9920A2E for ; Mon, 21 Sep 2015 03:17:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5966820A29 for ; Mon, 21 Sep 2015 03:17:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755932AbbIUDR4 (ORCPT ); Sun, 20 Sep 2015 23:17:56 -0400 Received: from eusmtp01.atmel.com ([212.144.249.242]:21070 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755911AbbIUDR4 (ORCPT ); Sun, 20 Sep 2015 23:17:56 -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; Mon, 21 Sep 2015 05:17:54 +0200 From: Tony Cho To: CC: , , , , , , , , , , , Subject: [PATCH v2 05/34] staging: wilc1000 remove typedef from the union Date: Mon, 21 Sep 2015 12:16:34 +0900 Message-ID: <1442805423-3711-6-git-send-email-tony.cho@atmel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442805423-3711-1-git-send-email-tony.cho@atmel.com> References: <1442805423-3711-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 gets rid of typedef from the union and renames tuniHostIFmsgBody with simply message_body because the Linux coding style does not recommend camelcase notation and typedef for structure, enmu and also union. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/host_interface.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index d2b0ea6..c4a8481 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -408,7 +408,7 @@ typedef struct { } tstrHostIfStaInactiveT; /**/ /*! - * @union tuniHostIFmsgBody + * @union message_body * @brief Message body for the Host Interface message_q * @details * @todo @@ -417,7 +417,7 @@ typedef struct { * @date 25 March 2012 * @version 1.0 */ -typedef union _tuniHostIFmsgBody { +union message_body { tstrHostIFscanAttr strHostIFscanAttr; /*!< Host IF Scan Request Attributes message body */ tstrHostIFconnectAttr strHostIFconnectAttr; /*!< Host IF Connect Request Attributes message body */ tstrRcvdNetworkInfo strRcvdNetworkInfo; /*!< Received Asynchronous Network Info message body */ @@ -446,7 +446,7 @@ typedef union _tuniHostIFmsgBody { tstrHostIfRegisterFrame strHostIfRegisterFrame; char *pUserData; tstrHostIFDelAllSta strHostIFDelAllSta; -} tuniHostIFmsgBody; +}; /*! * @struct struct host_if_msg @@ -460,7 +460,7 @@ typedef union _tuniHostIFmsgBody { */ struct host_if_msg { u16 id; /*!< Message ID */ - tuniHostIFmsgBody uniHostIFmsgBody; /*!< Message body */ + union message_body uniHostIFmsgBody; /*!< Message body */ tstrWILC_WFIDrv *drvHandler; };