From patchwork Thu Jan 21 11:30:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8080361 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 E33E0BEEE5 for ; Thu, 21 Jan 2016 11:32:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 14CEB20585 for ; Thu, 21 Jan 2016 11:32:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 333892054D for ; Thu, 21 Jan 2016 11:32:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965204AbcAULcg (ORCPT ); Thu, 21 Jan 2016 06:32:36 -0500 Received: from mail-pa0-f68.google.com ([209.85.220.68]:34903 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965191AbcAULce (ORCPT ); Thu, 21 Jan 2016 06:32:34 -0500 Received: by mail-pa0-f68.google.com with SMTP id gi1so1651577pac.2 for ; Thu, 21 Jan 2016 03:32:34 -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=hcRur0wSkgJaj6lel37WoZdJTCOjC3Zfv1XnKjMARkQ=; b=oPMPnHq2fXM7QJKcpKG7Z0e1foQJN67hcyWMv6LkCaTwFZczEMtq9Rmh4DRTZL4k88 jcLEON5+CkrhphLzK8zL1lErIaT9/xXJBQC8mk/M+LiaDX5muiR/MwBzw+HTYujrsFQJ TPKa4Xx/rehQxf4a3ya90ZGkwV/STLVN/LGQvZZiS1Qv9Iml9z4XD6Ny2RRBtpWGjgRU mf0M1OwWlM8gaQn8jXhdfThRXMYh3PPmfcyf+m2AuK65KSDe3Hvt3ZYgDejyU9QjM3VN 11/GeVsxKStCrtZGRWVBnN5Fuy/tOXfpPfH9rIoh/VCrSfa5Yx+PlzLc8KfJLaPfK95G quHw== 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=hcRur0wSkgJaj6lel37WoZdJTCOjC3Zfv1XnKjMARkQ=; b=FcN21PoeZ5UxEGFNBckJQ9Jx0poqXpkF1Jywecl3KoYurz+7FAMO6iI0Pvt+5nSJwB Dka/bIL5gcrNUdhgqBwzvX8gUoKFyeWFVMmpfLYjrZ6FhErTqq3cE7V3frkQvQCiODjI x9DRVXMFlz7l40dOL69GjrhfdlY+8TS7ZXDJsp1ktR1dkkX9aRUEalCgNXTbGzTdocGs J2+tvlsO9iY0Pf8dZIATtvfACtv9U4j4taU4M5owzX9sr3ep4uIDv3COtO18HxvusiEQ bRHV5Su37gFuYBYuw/hJ5TXb6yqTkji3Em4wDwtpUhEzdaFKccV3mve+B8XoPB7IcQd7 vMZQ== X-Gm-Message-State: ALoCoQnn9Cs4I3Mw9DU0INwJT7wBNrip7tCAtpU5BaB7rTeU0MPc/3w5+HexxTEFtw/i9Yn6LC3FOMNJTX0DcZQvkaIKSQQ/aA== X-Received: by 10.66.102.8 with SMTP id fk8mr59729875pab.24.1453375954252; Thu, 21 Jan 2016 03:32:34 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 11sm1969754pfq.87.2016.01.21.03.32.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jan 2016 03:32:33 -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 16/27] staging: wilc1000: rename u32SendBufferSize in wilc_mq_send Date: Thu, 21 Jan 2016 20:30:46 +0900 Message-Id: <1453375857-20645-17-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 u32SendBufferSize to send_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 5feb87c..8e37cff0 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -54,12 +54,12 @@ int wilc_mq_destroy(struct message_queue *mq) * @version 1.0 */ int wilc_mq_send(struct message_queue *mq, - const void *send_buf, u32 u32SendBufferSize) + const void *send_buf, u32 send_buf_size) { unsigned long flags; struct message *pstrMessage = NULL; - if ((!mq) || (u32SendBufferSize == 0) || (!send_buf)) { + if ((!mq) || (send_buf_size == 0) || (!send_buf)) { PRINT_ER("mq or send_buf is null\n"); return -EFAULT; } @@ -74,9 +74,9 @@ int wilc_mq_send(struct message_queue *mq, if (!pstrMessage) return -ENOMEM; - pstrMessage->len = u32SendBufferSize; + pstrMessage->len = send_buf_size; pstrMessage->next = NULL; - pstrMessage->buf = kmemdup(send_buf, u32SendBufferSize, + pstrMessage->buf = kmemdup(send_buf, send_buf_size, GFP_ATOMIC); if (!pstrMessage->buf) { kfree(pstrMessage); diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h index 3adee90..70e1be1 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.h +++ b/drivers/staging/wilc1000/wilc_msgqueue.h @@ -58,7 +58,7 @@ int wilc_mq_create(struct message_queue *mq); * @version 1.0 */ int wilc_mq_send(struct message_queue *mq, - const void *send_buf, u32 u32SendBufferSize); + const void *send_buf, u32 send_buf_size); /*! * @brief Receives a message