From patchwork Thu Jan 21 01:20:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8076271 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 4E4819F859 for ; Thu, 21 Jan 2016 01:20:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 731E520531 for ; Thu, 21 Jan 2016 01:20:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7EB5A20527 for ; Thu, 21 Jan 2016 01:20:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752142AbcAUBUx (ORCPT ); Wed, 20 Jan 2016 20:20:53 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33115 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751796AbcAUBUw (ORCPT ); Wed, 20 Jan 2016 20:20:52 -0500 Received: by mail-pf0-f194.google.com with SMTP id e65so1068807pfe.0 for ; Wed, 20 Jan 2016 17:20:51 -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=iPu1AtqvSMywA3DOXMsxMkxgr6dzhpVQUHGwHLgzSRs=; b=QY5i7piMSwd42MaQme4CFaPvNFM2SMGsQu3XDOQ1vTjSIeG38YXu8XwyMfJTwNEN2W sKUD2w5eg85TnDMp+VzXj4kF++EBCwbGtrLOcTOcuNL0vwQbHyV/YsjwdE0KjUN40Ufq tNWGuaV7kAPiNsIiosOLOJ6z9B3FnwBSWFnSwRT3H2TcdgAvuTHa8ULfDZRUpoH3gOh7 Z6J2NQ5MvYYqQBCV11RFDOGf7eVbCG/2+zmirehcB+94ZyVhtpaCLchKLmGZRGHF2rAW 2NDUneHAMqcKpnOQQ4SnPWsUdvntZ+hLhylsJA2tmaY66W9+51Cf8znSpdfTI4QPUiwv 7qcQ== 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=iPu1AtqvSMywA3DOXMsxMkxgr6dzhpVQUHGwHLgzSRs=; b=WPoQ+/vP6QM1CeOob04JGFOaz6dU2Rx3dbz7Tl2bqixYNR0/BgEa7uNpmlkQ4oFz0i igfRVH67fgmGfXeau3k4zl2T8k1pd/nJp2eByfhjUw5Uq5xgDX+pKmMiBG+cVL+eC0Ga TpjFDtX1f8YnznZT6wioEjOdbJ0Sug68mqrHaZ8edjSTU1Lgy/ktQ3A4YDPJU+kiST+V s4b2oDqEEweXRCf41Hb0c+Xlj7JqA95lY8bm4K/AOoioXzxM5KKGVyXn3wYuD3OnFYvV lSOpe7kOOZ6msEacpYrARDGLZX0d+wce+wJEVuaWv1hL1pHvcCK4scVmVo2VMOnQXACq K32g== X-Gm-Message-State: ALoCoQlihfgy2m9SuHehRZPWy/rLzSFnSWrHFao9veZR5xihhZr/xOrbCQQd6dL4FqsxqXBrdeQb8gOVmGECWw0EmJWaa1AjFA== X-Received: by 10.98.18.145 with SMTP id 17mr57743248pfs.103.1453339251748; Wed, 20 Jan 2016 17:20:51 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id s19sm51372596pfs.62.2016.01.20.17.20.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jan 2016 17:20:51 -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 04/27] staging: wilc1000: rename pstrNext in struct message Date: Thu, 21 Jan 2016 10:20:07 +0900 Message-Id: <1453339230-1377-4-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1453339230-1377-1-git-send-email-chaehyun.lim@gmail.com> References: <1453339230-1377-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 pstrNext to next to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_msgqueue.c | 12 ++++++------ drivers/staging/wilc1000/wilc_msgqueue.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index 0e66a64..4d79a31 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) { - struct message *pstrMessge = pHandle->pstrMessageList->pstrNext; + struct message *pstrMessge = pHandle->pstrMessageList->next; kfree(pHandle->pstrMessageList); pHandle->pstrMessageList = pstrMessge; @@ -75,7 +75,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, return -ENOMEM; pstrMessage->len = u32SendBufferSize; - pstrMessage->pstrNext = NULL; + pstrMessage->next = NULL; pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize, GFP_ATOMIC); if (!pstrMessage->buf) { @@ -91,10 +91,10 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, } else { struct message *pstrTailMsg = pHandle->pstrMessageList; - while (pstrTailMsg->pstrNext) - pstrTailMsg = pstrTailMsg->pstrNext; + while (pstrTailMsg->next) + pstrTailMsg = pstrTailMsg->next; - pstrTailMsg->pstrNext = pstrMessage; + pstrTailMsg->next = pstrMessage; } spin_unlock_irqrestore(&pHandle->strCriticalSection, flags); @@ -154,7 +154,7 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle, memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len); *pu32ReceivedLength = pstrMessage->len; - pHandle->pstrMessageList = pstrMessage->pstrNext; + pHandle->pstrMessageList = pstrMessage->next; kfree(pstrMessage->buf); kfree(pstrMessage); diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h index b0ccd1d..ec503c3 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.h +++ b/drivers/staging/wilc1000/wilc_msgqueue.h @@ -16,7 +16,7 @@ struct message { void *buf; u32 len; - struct message *pstrNext; + struct message *next; }; typedef struct __MessageQueue_struct {