From patchwork Thu Jan 21 01:20:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8076241 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 75F26BEEE5 for ; Thu, 21 Jan 2016 01:20:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 89C4220531 for ; Thu, 21 Jan 2016 01:20:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A62DF20527 for ; Thu, 21 Jan 2016 01:20:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751599AbcAUBUo (ORCPT ); Wed, 20 Jan 2016 20:20:44 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36647 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028AbcAUBUn (ORCPT ); Wed, 20 Jan 2016 20:20:43 -0500 Received: by mail-pf0-f195.google.com with SMTP id n128so1046200pfn.3 for ; Wed, 20 Jan 2016 17:20:42 -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=2xAqQoLNJOLxsCThUFXtpj1qRhoF+w30cdr59eQ/f6c=; b=pLAi4feUU7MISsjuT25UCOsxAp73qAk4Y3GVaCbhbwg02LiliX62MSSDUM3Rtbzq5C CutETlYf/L5VMrqF3zBxGOrvSEeKuEUUq8s1dEfJTPWMC9zenKnCrnUJ+mZi9VZHa+o2 7mdoIfnhua5AkDAeqxn5I62AMweSnyhO4huuPAScqEC3AAOn6rFCWOqxzgUfzvZqNJom YtGFECYwlwdwBP7iqYOJ98luDV1Ol3mFwsBosCCvLpMnM0Vu2K53KM5gJJs2/RlQ+1Yz 3pxKm+0xsbI359ekz0Yi3vlCvS11lP/Wt9qGBqv2sB2Q4NC1ePvuPPib3cYYmInzEaZK ryQQ== 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=2xAqQoLNJOLxsCThUFXtpj1qRhoF+w30cdr59eQ/f6c=; b=clmd3GL3o8rrkxrJ+Cni9Fd1BYcr3+w9fK3H3Ox92EAoyV1TRrwj4dgjRejeIRKW5W iGoRAvBPEFBjXETLWKeAvmGJNuKx0JCja6ztaHri2a5oQX4mPCTvNxKIuE5JYQQIrua4 XIif06Mr0xg+7mi00sw5WKZgoUov+EjbLTVuTAAAXtfBzBz+TDH4OCd2fFkoAzB6o5vn pahxQbNjSsx8E4B6SkIO3V3uHwhIMGjslJJrWunAW9KgaFXTEUdqkU2xH6J84dWT1Tsw X5BxRG/gTXO0uHfwvXMiwEs/mb6ZgB/1fAmBKpnsbdq8uevyTrY+MnvrcvK6LecIEzlr +2qw== X-Gm-Message-State: ALoCoQmC8918JZeaFCaqDZQjwBUPj3Z+dqGePfsBNxiBF8TrUn0nxoaob1HiWb5FH/FO8NRr/ikAHXp6olXPvZ3/Mgdk6/gM4w== X-Received: by 10.98.75.139 with SMTP id d11mr56582079pfj.57.1453339242595; Wed, 20 Jan 2016 17:20:42 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id s19sm51372596pfs.62.2016.01.20.17.20.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jan 2016 17:20:41 -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 01/27] staging: wilc1000: rename struct __Message_struct Date: Thu, 21 Jan 2016 10:20:04 +0900 Message-Id: <1453339230-1377-1-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.6.4 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 typedef from struct __Message_struct and renames it to struct message. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_msgqueue.c | 10 +++++----- drivers/staging/wilc1000/wilc_msgqueue.h | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index abc780c..9b78fcd 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -38,7 +38,7 @@ int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle) } while (pHandle->pstrMessageList) { - Message *pstrMessge = pHandle->pstrMessageList->pstrNext; + struct message *pstrMessge = pHandle->pstrMessageList->pstrNext; kfree(pHandle->pstrMessageList); pHandle->pstrMessageList = pstrMessge; @@ -57,7 +57,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, const void *pvSendBuffer, u32 u32SendBufferSize) { unsigned long flags; - Message *pstrMessage = NULL; + struct message *pstrMessage = NULL; if ((!pHandle) || (u32SendBufferSize == 0) || (!pvSendBuffer)) { PRINT_ER("pHandle or pvSendBuffer is null\n"); @@ -70,7 +70,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, } /* construct a new message */ - pstrMessage = kmalloc(sizeof(Message), GFP_ATOMIC); + pstrMessage = kmalloc(sizeof(struct message), GFP_ATOMIC); if (!pstrMessage) return -ENOMEM; @@ -89,7 +89,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, if (!pHandle->pstrMessageList) { pHandle->pstrMessageList = pstrMessage; } else { - Message *pstrTailMsg = pHandle->pstrMessageList; + struct message *pstrTailMsg = pHandle->pstrMessageList; while (pstrTailMsg->pstrNext) pstrTailMsg = pstrTailMsg->pstrNext; @@ -114,7 +114,7 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle, void *pvRecvBuffer, u32 u32RecvBufferSize, u32 *pu32ReceivedLength) { - Message *pstrMessage; + struct message *pstrMessage; unsigned long flags; if ((!pHandle) || (u32RecvBufferSize == 0) diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h index d7e0328..1a7c652 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.h +++ b/drivers/staging/wilc1000/wilc_msgqueue.h @@ -13,18 +13,18 @@ #include /* Message Queue type is a structure */ -typedef struct __Message_struct { +struct message { void *pvBuffer; u32 u32Length; - struct __Message_struct *pstrNext; -} Message; + struct message *pstrNext; +}; typedef struct __MessageQueue_struct { struct semaphore hSem; spinlock_t strCriticalSection; bool bExiting; u32 u32ReceiversCount; - Message *pstrMessageList; + struct message *pstrMessageList; } WILC_MsgQueueHandle; /*!