From patchwork Thu Jan 21 01:20:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8076461 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 CE225BEEE5 for ; Thu, 21 Jan 2016 01:21:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E968120531 for ; Thu, 21 Jan 2016 01:21:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ECDAA20527 for ; Thu, 21 Jan 2016 01:21:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755545AbcAUBVu (ORCPT ); Wed, 20 Jan 2016 20:21:50 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36802 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755461AbcAUBVt (ORCPT ); Wed, 20 Jan 2016 20:21:49 -0500 Received: by mail-pf0-f193.google.com with SMTP id n128so1047124pfn.3 for ; Wed, 20 Jan 2016 17:21: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=4sFX7rEGzBNyPXX1+O5D6J8ECRaZkN+TZjYFpO0gtzg=; b=kfKkhKrLzsTwEFVFSMM3ZIju6BLIOiA0nc2sGTHQZ7os+A5pReBRhgANVlJOyAWiMG R1ie7t58YJ78+M9ktcBCGVlLNAaxx6ccCTb/I5lY/1A7TOCdtte50pI773lNEJv68HuO +JZcpchCiHXs3lRKgxpsc98osqbp5CbEUT+XB9Fm+jZds1crHMtNwgSdYKD74Tq9OJXf AJHrFU675KJPmL3jS5BWiAbb2d0vg/ZfyOYE7dk5qiuJttcKwJyiv1Nv+UKGIfi4QYJc 4W3noOgDZzS5u/gEcMVxwwYw4lylAoDn+68ScGurjm/Ac6GB1taRLOI6zaYkMc4fITsj hMQQ== 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=4sFX7rEGzBNyPXX1+O5D6J8ECRaZkN+TZjYFpO0gtzg=; b=Kp9nv94+zo4sW6VDRgReuIgLcmCERWNgja0etZy8cM0XIh9XsxbrMJp/ITwp41XaAI mkeprVMKW0VjFO+/ZxFp61GJ9wB+1vCVdfJQ1mY8x9u16lavktVZQvOfcp/fRLrCAoR6 Eal+GkH7dwxZSPGGXMtLqOhNSOxlctfL8KF8xqWM4B4axDmMLcjyIBGbG6xR9uuC4ba2 lEwcfdQ2O9idOgxfo/arO8kodghWoUoM/mXpctvLs01cpnT30zXkZuXR3g2s/0Khtl6W 7MV3dEcJJhB62BmKGerX9nJXRPVYI/zzuq9U7RgbrM0W6Ls9bSHf44D41J751MkQXAmA alFA== X-Gm-Message-State: ALoCoQnCUhP1hu00C2ZiAwq7qXb7ZVEwhyQEhAbCqlbPmtvcohSX97p0Vj01Op+nxev7GoYtAAbA8hod4QWgpacPvMK8swMq5A== X-Received: by 10.98.72.130 with SMTP id q2mr57257328pfi.154.1453339309132; Wed, 20 Jan 2016 17:21:49 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id s19sm51372596pfs.62.2016.01.20.17.21.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jan 2016 17:21: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 23/27] staging: wilc1000: rename pu32ReceivedLength in wilc_mq_recv Date: Thu, 21 Jan 2016 10:20:26 +0900 Message-Id: <1453339230-1377-23-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 pu32ReceivedLength to recv_len to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_msgqueue.c | 7 +++---- drivers/staging/wilc1000/wilc_msgqueue.h | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index c86bd7c..5601de8 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -110,14 +110,13 @@ int wilc_mq_send(struct message_queue *mq, * @version 1.0 */ int wilc_mq_recv(struct message_queue *mq, - void *recv_buf, u32 recv_buf_size, - u32 *pu32ReceivedLength) + void *recv_buf, u32 recv_buf_size, u32 *recv_len) { struct message *pstrMessage; unsigned long flags; if ((!mq) || (recv_buf_size == 0) - || (!recv_buf) || (!pu32ReceivedLength)) { + || (!recv_buf) || (!recv_len)) { PRINT_ER("mq or recv_buf is null\n"); return -EINVAL; } @@ -151,7 +150,7 @@ int wilc_mq_recv(struct message_queue *mq, /* consume the message */ mq->recv_count--; memcpy(recv_buf, pstrMessage->buf, pstrMessage->len); - *pu32ReceivedLength = pstrMessage->len; + *recv_len = pstrMessage->len; mq->msg_list = pstrMessage->next; diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h index 3804b3b..4f79ead 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.h +++ b/drivers/staging/wilc1000/wilc_msgqueue.h @@ -77,8 +77,7 @@ int wilc_mq_send(struct message_queue *mq, * @version 1.0 */ int wilc_mq_recv(struct message_queue *mq, - void *recv_buf, u32 recv_buf_size, - u32 *pu32ReceivedLength); + void *recv_buf, u32 recv_buf_size, u32 *recv_len); /*! * @brief Destroys an existing Message queue