From patchwork Thu Jan 21 01:20:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8076341 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 3F7F3BEEE5 for ; Thu, 21 Jan 2016 01:21:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 678A0205F5 for ; Thu, 21 Jan 2016 01:21:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 927FC20531 for ; Thu, 21 Jan 2016 01:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753396AbcAUBVP (ORCPT ); Wed, 20 Jan 2016 20:21:15 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33158 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751781AbcAUBVN (ORCPT ); Wed, 20 Jan 2016 20:21:13 -0500 Received: by mail-pf0-f196.google.com with SMTP id e65so1069061pfe.0 for ; Wed, 20 Jan 2016 17:21:13 -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=I+IUTbB+QlyGMkXO5wYGNhJpkxsMhFxDyCFUZXd9sFs=; b=o24Zon2Za0+wrqNtDzF1UbLgINi2Y13Szksio6IImfn3zIk40asEWVVZMNMKCrPYeE 4Qjb/RoGEglmLnPHOoGpWwnpOz1jcCcTzoaVAXi34BBXnADyvva2/KE4DifBVdg/pWcV cfKXmyBGTjpSsF1shY/iBtzQAtl9aIqP9ZPn4bMbQZRiOffLEz1cl5rRLHJjw20ldCIH w2+Oyh+1cfYuY13nxj42sFyKaeHuNxK5YIMF3gJ7kaQaeNbzEEvm5EQcklKHGvBnRMdv BM99bgjlFTRQx58uKR59RDYN8P7fgDND14gRSrMjV4YU7zMBvenlW/Tq3Agc4v0Ak813 LNYA== 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=I+IUTbB+QlyGMkXO5wYGNhJpkxsMhFxDyCFUZXd9sFs=; b=jt0C85fLPJm7OkggBItrrgIcM4KfqSjBduMrrcOrOZlHC8Oq4KXo54aYUIkjTYc9It XFSqbAbCYh8A8I0icbpbi9eKnhUtJ8vWOtDinHq/O0k3rWJ2i+b9lAQHUoIBvASBLNV/ wRRTMLG80QP6MVKvCKEG6wjQfOG61vYUcmSe08Q+iXHrCNtxEN0I4j7j1CL6fx33BkiM siNb4weY0ZmSRik+j8QSeQwqQfiY3unVIfATYA2ra+oxxxcp2PbAvKBHKPTzWUQR9Ke8 NM5BwYdWOc181KJRYab56QAEjYHDIzTj0jx9XEwVH9vlurKCun/hTN951ihH8es6Xz51 PZWg== X-Gm-Message-State: ALoCoQljZ+l8RLqA49u97aYDnzgggEOvKVNoPoLWfVg1zTKSFhUIyx9Tf86L0UjEABG1Q9kIMMAHnfeR3Tjy1Gp7xCGqE8h+vg== X-Received: by 10.98.12.213 with SMTP id 82mr56519368pfm.116.1453339272875; Wed, 20 Jan 2016 17:21:12 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id s19sm51372596pfs.62.2016.01.20.17.21.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jan 2016 17:21:12 -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 11/27] staging: wilc1000: rename pHandle in wilc_mq_create Date: Thu, 21 Jan 2016 10:20:14 +0900 Message-Id: <1453339230-1377-11-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 pHandle to mq 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 d13c9a7..453fa19 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -11,13 +11,13 @@ * @note copied from FLO glue implementatuion * @version 1.0 */ -int wilc_mq_create(struct message_queue *pHandle) +int wilc_mq_create(struct message_queue *mq) { - spin_lock_init(&pHandle->lock); - sema_init(&pHandle->sem, 0); - pHandle->msg_list = NULL; - pHandle->recv_count = 0; - pHandle->exiting = false; + spin_lock_init(&mq->lock); + sema_init(&mq->sem, 0); + mq->msg_list = NULL; + mq->recv_count = 0; + mq->exiting = false; return 0; } diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h index 7e7ec06..bfd2347 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.h +++ b/drivers/staging/wilc1000/wilc_msgqueue.h @@ -40,7 +40,7 @@ struct message_queue { * @date 30 Aug 2010 * @version 1.0 */ -int wilc_mq_create(struct message_queue *pHandle); +int wilc_mq_create(struct message_queue *mq); /*! * @brief Sends a message