From patchwork Thu Jan 21 11:30:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8080421 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 6D740BEEE5 for ; Thu, 21 Jan 2016 11:32:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8BD6520585 for ; Thu, 21 Jan 2016 11:32:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B4E1E2054D for ; Thu, 21 Jan 2016 11:32:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965231AbcAULcy (ORCPT ); Thu, 21 Jan 2016 06:32:54 -0500 Received: from mail-pa0-f67.google.com ([209.85.220.67]:35854 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965191AbcAULcx (ORCPT ); Thu, 21 Jan 2016 06:32:53 -0500 Received: by mail-pa0-f67.google.com with SMTP id a20so1631944pag.3 for ; Thu, 21 Jan 2016 03:32:53 -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=YcC2v/ErcXG3g/H9y5/kYiqQa0/cqoaYqnyIt+hGxu0=; b=KCBL2iyoKaFHwS2tiJDQO9TCmwHOIj5fw1Ncmrh+oOD9iY/As8Hxx1xFHKeivyUvu7 GCavFi904bqVUmvZpyzTPeVqOWDSl30nR+S/btwTXNKCTPISRYwARsdSMt4MvUweV/fs yQSiaO3hfgHwoY1HWexwkJ8dsLFx7FnIlwdH3d2g3ZrXTpR5/2+T8l44aCs7EQTlGerE PsGo6eeH1/BWUY3TShGJIHP0mEbrNa4hhxhVY2B7ZxSkmjhmoja//8mKn9zOvpPqBzli VFXaVawmX3xIKMfVKFDckMqX85Oqawy2QeON1IDJvXRKgEG88HOTjQCEnoWPUBCYiIlh 2Uzg== 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=YcC2v/ErcXG3g/H9y5/kYiqQa0/cqoaYqnyIt+hGxu0=; b=Bsf/dntOvTncjZrq4ia2P31IyyucCigssPuBdddJiYWFIsIzWFAhpJgA+uVn9q04eU c0nBjAqAI37lZyOZQqkCs3wDPGanapHLTGAJbKrYC5rSx6XnK3vL/OzBDi6hTbJ1JLOy ch6RLxA5QPxOQAc5AWmhAbPccy5KhkYdQAHWXlMw6kz3K1c2HmCDkcnhrzGOuSksJcyO 58jBIRCiLxF3JBSQ5/UnuD9MaW5tucfu4kK+kLsaR9wigg4ViJGH4/bLerSxHyPsPEk/ u6U4xQrg8oLRRaxrtd4ZopB74LC2dL1XQa98tj9ElAhhf5hFRM947Ch8ZJKvXV5ynRqU FUOQ== X-Gm-Message-State: ALoCoQlIShKUQ3baRx2CUXA4tcCX0wc8km2mOwcu+P3bbQUfWrHkggZxyyj1GpgQO1SMmCbnIB8LgV5CaKpqso1Hxj63AfaHsg== X-Received: by 10.67.3.170 with SMTP id bx10mr60321317pad.34.1453375972829; Thu, 21 Jan 2016 03:32:52 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 11sm1969754pfq.87.2016.01.21.03.32.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jan 2016 03:32:52 -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 V2 22/27] staging: wilc1000: rename u32RecvBufferSize in wilc_mq_recv Date: Thu, 21 Jan 2016 20:30:52 +0900 Message-Id: <1453375857-20645-23-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1453375857-20645-1-git-send-email-chaehyun.lim@gmail.com> References: <1453375857-20645-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 u32RecvBufferSize to recv_buf_size 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 b836b2e..c86bd7c 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -110,13 +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 u32RecvBufferSize, + void *recv_buf, u32 recv_buf_size, u32 *pu32ReceivedLength) { struct message *pstrMessage; unsigned long flags; - if ((!mq) || (u32RecvBufferSize == 0) + if ((!mq) || (recv_buf_size == 0) || (!recv_buf) || (!pu32ReceivedLength)) { PRINT_ER("mq or recv_buf is null\n"); return -EINVAL; @@ -141,10 +141,10 @@ int wilc_mq_recv(struct message_queue *mq, return -EFAULT; } /* check buffer size */ - if (u32RecvBufferSize < pstrMessage->len) { + if (recv_buf_size < pstrMessage->len) { spin_unlock_irqrestore(&mq->lock, flags); up(&mq->sem); - PRINT_ER("u32RecvBufferSize overflow\n"); + PRINT_ER("recv_buf_size overflow\n"); return -EOVERFLOW; } diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h index 81b51dd..3804b3b 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.h +++ b/drivers/staging/wilc1000/wilc_msgqueue.h @@ -77,7 +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 u32RecvBufferSize, + void *recv_buf, u32 recv_buf_size, u32 *pu32ReceivedLength); /*!