From patchwork Thu Jan 21 01:20:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8076261 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 5431CBEEE5 for ; Thu, 21 Jan 2016 01:20:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 766CD20527 for ; Thu, 21 Jan 2016 01:20:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9255920531 for ; Thu, 21 Jan 2016 01:20:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752082AbcAUBUu (ORCPT ); Wed, 20 Jan 2016 20:20:50 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33105 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751796AbcAUBUt (ORCPT ); Wed, 20 Jan 2016 20:20:49 -0500 Received: by mail-pf0-f195.google.com with SMTP id e65so1068729pfe.0 for ; Wed, 20 Jan 2016 17:20:49 -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=jK1fDJabFaXYbBRmgEMH/IeMUGaZUYSybpc/yul/PkU=; b=GT3AmKlseHchPHn6a8Eyk6RmCbdbbLe75KMJoqdBPBEoijQJRR/HBj4/K+uHqIB16p gyaiqrJQ29gN05iPtSiNzPBqbgrTh7iyPJfBaAHNY3HDXRdSbLaY0r8lgSntWl4zvRgf 7Ye3tw0GsSOz1owFnirjGtxXRz6FCRU2M5T3ZrrTfuNMWNCFsUCmcuHyUholY59CCdM5 GkAG1QRhoj4etz5Kndc2rpIotwA6eg6ptR94hG94FouJj+koZkP/TRtJxeTBdmZEd87V 3EvH9PD966dL0/YpqAE8EM1QYwONYOnM9Lht6/1O7JetmLM3+ncbByTgWYSkdI9B81bw fbGg== 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=jK1fDJabFaXYbBRmgEMH/IeMUGaZUYSybpc/yul/PkU=; b=g+SzFrRj54cdJGsma6PBCqYTgnH2zDcAq3QuJWnvsIK1jsreYaTwhPupBCHyFRe6mz eUfkpvkn/mp3Hy3Tr7BJjl60nTOrVgIMpXUUPmjH+vSVOLY87qAr6ioyofVAc7l3UMA1 sEcZ8wWqvpqDPmVoDO+a6OwDbrxWFh76we/IwtAQagtdkNV6c6Eidnotrp6V9xMEPqvE dmDbPr6mbPzrcqmjXfaT1jMimR7BGB1aCaoAFba3pjjiWnKfat7quievt9ndmETGgPJN 6rlGy1z2QMb8osWHEHz4T//Jv1kTfx1v85iZZ39a0Sm4rIK1wsqKDYCbLtHAq//jmZMv d28Q== X-Gm-Message-State: ALoCoQllROcaoYcuDpy5pJlhVwQE2Tqkg0wZxmnYtO/+cA8NJ/pxICaSKWnM0Ggckw8EahQmczu4qTq7vPDebjt50WhLH/S4/w== X-Received: by 10.98.87.204 with SMTP id i73mr56677566pfj.63.1453339248761; Wed, 20 Jan 2016 17:20:48 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id s19sm51372596pfs.62.2016.01.20.17.20.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jan 2016 17:20:48 -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 03/27] staging: wilc1000: rename u32Length in struct message Date: Thu, 21 Jan 2016 10:20:06 +0900 Message-Id: <1453339230-1377-3-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 u32Length to len to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_msgqueue.c | 8 ++++---- drivers/staging/wilc1000/wilc_msgqueue.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index a4e612d..0e66a64 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -74,7 +74,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, if (!pstrMessage) return -ENOMEM; - pstrMessage->u32Length = u32SendBufferSize; + pstrMessage->len = u32SendBufferSize; pstrMessage->pstrNext = NULL; pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize, GFP_ATOMIC); @@ -142,7 +142,7 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle, return -EFAULT; } /* check buffer size */ - if (u32RecvBufferSize < pstrMessage->u32Length) { + if (u32RecvBufferSize < pstrMessage->len) { spin_unlock_irqrestore(&pHandle->strCriticalSection, flags); up(&pHandle->hSem); PRINT_ER("u32RecvBufferSize overflow\n"); @@ -151,8 +151,8 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle, /* consume the message */ pHandle->u32ReceiversCount--; - memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->u32Length); - *pu32ReceivedLength = pstrMessage->u32Length; + memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len); + *pu32ReceivedLength = pstrMessage->len; pHandle->pstrMessageList = pstrMessage->pstrNext; diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h index 848ed82..b0ccd1d 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.h +++ b/drivers/staging/wilc1000/wilc_msgqueue.h @@ -15,7 +15,7 @@ /* Message Queue type is a structure */ struct message { void *buf; - u32 u32Length; + u32 len; struct message *pstrNext; };