From patchwork Mon Mar 28 04:55:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8677911 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 017189F44D for ; Mon, 28 Mar 2016 04:56:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B3CE20251 for ; Mon, 28 Mar 2016 04:56:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F2BB92024C for ; Mon, 28 Mar 2016 04:56:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753922AbcC1E4R (ORCPT ); Mon, 28 Mar 2016 00:56:17 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:33601 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751643AbcC1E4P (ORCPT ); Mon, 28 Mar 2016 00:56:15 -0400 Received: by mail-pa0-f68.google.com with SMTP id q6so13798323pav.0 for ; Sun, 27 Mar 2016 21:56:15 -0700 (PDT) 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=NBgKwLDyrGz6nDB2VkEog38xxunu8Eqq0IJXPkJIIw0=; b=GStjA/bOhHt3790/uxi9gZgoSnUg93hBDL3c7JwZyZCKBt1L7JLbeQbihRJMi8dsMr j1aWhFhhYL2sm4YX+ncvpyF3Pr3i/P1sNFZIrHj3blXbv1pb237as56xTvV/EJMDJbCq xoc+7S3s5zwNd3skM2tLe9smJMBpjtaDbV0nPTNQg+kGdL490NEAAmsmsIcdlwW5oV9x cWB6XmJDnQQkSA/+U/xc24TBacdBHMZRztXNN+uMbg/606XklBwBaWNxLkLjRopeE1QI L9Iq9gjw80iqvTVoJuUStlomUSBEBfb7yjbUKrbYbMDzddlLxfk4Mogq6oWv2Maqv7Xw hR0A== 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=NBgKwLDyrGz6nDB2VkEog38xxunu8Eqq0IJXPkJIIw0=; b=PslfWYNVssGronCkOI6eOkpI4viU24QQceOReBtp7wySHUlBOuUB3Sdon8zVtrljrV Ytmr3nP32ZIqwkYY2msl6jsKhhdYqVp7fN5dbQoeRgSNp4jG+EvFq5xXpZ4LvTk3UFPq wZqATIL4F8fX6gmZQhQ/F6AQXPq7hSeB29cQiEd7HDQp3zQ0urUI0mCjxUYmElU/azsk APZAeLat/4eVJIZ/g3OoQufYrAkuPgEhjfh4ZgFlziu/M62KVvEpq0m9HCuyjPez6k7w vKxbPZi5QvLm/sdFzqvOgFceIQWJd9I7MY8EvaZOstSyzq6DJiEdUWiizCDwH3QAOfdW FRXg== X-Gm-Message-State: AD7BkJLh5zSTtNOgVl35weZi0iGfgq1BRZf04fmMl0zIcQIfyMOqDJklURkHGjimNUeopQ== X-Received: by 10.66.222.41 with SMTP id qj9mr39630686pac.136.1459140974995; Sun, 27 Mar 2016 21:56:14 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id t78sm13518897pfi.55.2016.03.27.21.56.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 27 Mar 2016 21:56:14 -0700 (PDT) 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 3/5] staging: wilc1000: change data type of wid argument in wilc_wlan_cfg_get_val Date: Mon, 28 Mar 2016 13:55:58 +0900 Message-Id: <1459140960-10645-3-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1459140960-10645-1-git-send-email-chaehyun.lim@gmail.com> References: <1459140960-10645-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=-7.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 changes data type of wid argument in wilc_wlan_cfg_get_val from u32 to u16. It is better to change data type of wid because wid has one of enum WID_T that is data type of u16. And, there is no need to use u16 type casting when calling wilc_wlan_cfg_get_wid_value function. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_wlan.c | 4 ++-- drivers/staging/wilc1000/wilc_wlan.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index db79ae2..7da3b4a 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -1276,9 +1276,9 @@ int wilc_wlan_cfg_get(struct wilc_vif *vif, int start, u16 wid, int commit, return ret_size; } -int wilc_wlan_cfg_get_val(u32 wid, u8 *buffer, u32 buffer_size) +int wilc_wlan_cfg_get_val(u16 wid, u8 *buffer, u32 buffer_size) { - return wilc_wlan_cfg_get_wid_value((u16)wid, buffer, buffer_size); + return wilc_wlan_cfg_get_wid_value(wid, buffer, buffer_size); } int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids, diff --git a/drivers/staging/wilc1000/wilc_wlan.h b/drivers/staging/wilc1000/wilc_wlan.h index 38edeeb..30e5312 100644 --- a/drivers/staging/wilc1000/wilc_wlan.h +++ b/drivers/staging/wilc1000/wilc_wlan.h @@ -288,7 +288,7 @@ int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u16 wid, u8 *buffer, u32 buffer_size, int commit, u32 drv_handler); int wilc_wlan_cfg_get(struct wilc_vif *vif, int start, u16 wid, int commit, u32 drv_handler); -int wilc_wlan_cfg_get_val(u32 wid, u8 *buffer, u32 buffer_size); +int wilc_wlan_cfg_get_val(u16 wid, u8 *buffer, u32 buffer_size); int wilc_wlan_txq_add_mgmt_pkt(struct net_device *dev, void *priv, u8 *buffer, u32 buffer_size, wilc_tx_complete_func_t func); void wilc_chip_sleep_manually(struct wilc *wilc);