From patchwork Mon Mar 28 04:55:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8677891 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 D88919F44D for ; Mon, 28 Mar 2016 04:56:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E885A20251 for ; Mon, 28 Mar 2016 04:56:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B73C2024C for ; Mon, 28 Mar 2016 04:56:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752325AbcC1E4M (ORCPT ); Mon, 28 Mar 2016 00:56:12 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34030 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751643AbcC1E4J (ORCPT ); Mon, 28 Mar 2016 00:56:09 -0400 Received: by mail-pf0-f194.google.com with SMTP id n5so19126192pfn.1 for ; Sun, 27 Mar 2016 21:56:09 -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; bh=sN3bDhuKULuS8yHkIIAZdFnASbHLLMxVjpr76oH38IY=; b=H6XSqXSqgnWq+y1Zudm5TXCB8HMz9MVW3LlzV3TGbb6NpZhE+Vtj6xQbGPpes0cbHj 7nYJfr27HSDWjS6qS4j5EGk2gqt6e2mAVekPTzqkn0/VhVKYTrReJTdfx6CxgsLCWV+w anbtKVT7eYg9ymtdkPF+l4yyxzT2/RcOGLV7pd+IMnUdxQ90cBWWB4uvrQd+24BH5Cq0 rdekrJ8/lFojkDXLzMk8gDoVvwnrLXOhr5FU3hGPHRIX1YvkOdj82L9fgpQk5Ti0NO7f RqSxywL0jHItm37QX1FtuytbDGBxhPTtVoSbHlD6wf7Ff2I37Z2Qcx4kedgak0rI/mYM OZ7Q== 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; bh=sN3bDhuKULuS8yHkIIAZdFnASbHLLMxVjpr76oH38IY=; b=EdG8JfVXvNMx6Bl0ISUw1T06WdQnfTWhcjnioF3S34RgBqaVPq740mPNkvhQjKzCOD SG6CtDeV/IuNLB8kvqk5ua2pc3pFlmp4juW2+CqPI7nk4+Co9lIWCVTVktd0NqzlU7Yi QpCeglJMwPG3EUGTeZ6YaTPYlcNFG/yAOR0nmFRy+SjaNOs82H6bAojLF++tOpjddzO1 +lWELSmVaKgAeJm0Lsu3IGkLLGua5dAlaBVltufRfduEJPgYtftcA9g+IRRwbHfSlmmY MkO3F8mgk/91RhMu1U2mYF9YUFNKtQHLixzIMLq+0weAEuyQjKi7ECtzlKsoEduKP7MO NCYg== X-Gm-Message-State: AD7BkJIuo/1ZI5Ui3PlN7pJemFJYy6MEQkV1jPS4+yHgr2nTZPc2mGgiLY8J9m/uEyiM5w== X-Received: by 10.98.71.210 with SMTP id p79mr39632773pfi.4.1459140968928; Sun, 27 Mar 2016 21:56:08 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id t78sm13518897pfi.55.2016.03.27.21.56.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 27 Mar 2016 21:56:08 -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 1/5] staging: wilc1000: change data type of wid argument in wilc_wlan_cfg_set Date: Mon, 28 Mar 2016 13:55:56 +0900 Message-Id: <1459140960-10645-1-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.4 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_set 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_set_wid 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 30e1c03..d09aa3b 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -1197,7 +1197,7 @@ static int wilc_wlan_cfg_commit(struct wilc_vif *vif, int type, return 0; } -int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u32 wid, u8 *buffer, +int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u16 wid, u8 *buffer, u32 buffer_size, int commit, u32 drv_handler) { u32 offset; @@ -1212,7 +1212,7 @@ int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u32 wid, u8 *buffer, offset = wilc->cfg_frame_offset; ret_size = wilc_wlan_cfg_set_wid(wilc->cfg_frame.frame, offset, - (u16)wid, buffer, buffer_size); + wid, buffer, buffer_size); offset += ret_size; wilc->cfg_frame_offset = offset; diff --git a/drivers/staging/wilc1000/wilc_wlan.h b/drivers/staging/wilc1000/wilc_wlan.h index bcd4bfa..ef70642 100644 --- a/drivers/staging/wilc1000/wilc_wlan.h +++ b/drivers/staging/wilc1000/wilc_wlan.h @@ -284,7 +284,7 @@ int wilc_wlan_txq_add_net_pkt(struct net_device *dev, void *priv, u8 *buffer, int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count); void wilc_handle_isr(struct wilc *wilc); void wilc_wlan_cleanup(struct net_device *dev); -int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u32 wid, u8 *buffer, +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, u32 wid, int commit, u32 drv_handler);