From patchwork Thu Mar 3 05:28:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8488021 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 017ED9F8A8 for ; Thu, 3 Mar 2016 05:28:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D07F20251 for ; Thu, 3 Mar 2016 05:28:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1EA1020145 for ; Thu, 3 Mar 2016 05:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751445AbcCCF2m (ORCPT ); Thu, 3 Mar 2016 00:28:42 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35007 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325AbcCCF2i (ORCPT ); Thu, 3 Mar 2016 00:28:38 -0500 Received: by mail-pf0-f194.google.com with SMTP id w128so717499pfb.2 for ; Wed, 02 Mar 2016 21:28:38 -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=LtPwDPxcGb4FYzVnvFT5hKPqM/EjGI8pP9CKvljXHSk=; b=EYh+9sHIsv3k8IeQA5+tbgwbdypSXxiq+UtQ4uCmZgPHgc7RQmKS4PWD0Mwj62f/Xw UeM3ZkcBQgwmu6QolumNIqI8o64DXJeEHtiygtPw/qqAi23xxnKOsKID/X7m21rZnXjt TwnvgCgLZU++Xm/JDMJJMawC3qr46rWFigrDhtMAwOH8rzIMC20uuy5jMkWz7V7SLpuZ xoJbLWFUKzRFlSx6nFUn5N5izMj4brXDHtfFGkjaX44bvSS+ZDTinNeaJfeXYiLWSyaV GNiVT2VXqD+vYEAnXAhIhWfPrk85T+XRrUkU13JQIwPOct7RDS/pOiHCmybHW8xMjqJY MmgQ== 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=LtPwDPxcGb4FYzVnvFT5hKPqM/EjGI8pP9CKvljXHSk=; b=bemtHWPH4G7EsE5tLUGIKOfkM16jviCLm0dM2l85nS4OfW4oSqx8tMGLX/QWlFJ5u6 /sn3Z5TWYMHhuIjhvZIsSRF/QCa+FSUcqhk+2XhjRacH7MYqpJU8sNSQ3hxfVaA2OwDv Nj2ks06V9bWd1khlanFR1+5TT0f0d0o/TP2n9WC9iFpZTZK6IiG4y1Omgw7JT4AkzBW1 fp+STQf+CaNWo1vU2iNaTBHZgTEgHRzj8cob5gQHIyzE6/JYN2Rw7rIUEcso0NNadDam w+JqaiJV5rEebjG3qwz+QZfjIT4pyaBau2ZF2+bQmavuhc+RXfGPRvViCT6fZ/EyhrFw yRQQ== X-Gm-Message-State: AD7BkJJgj0EAaVKLSFj6n63dnlJ9OLlNrNutzesmZCvN8uNNCkBOhCTgSaBMdk/y2rRwBg== X-Received: by 10.98.71.210 with SMTP id p79mr1136945pfi.4.1456982917472; Wed, 02 Mar 2016 21:28:37 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 9sm56842972pfc.69.2016.03.02.21.28.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Mar 2016 21:28:36 -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 3/5] staging: wilc1000: remove typedef from sdio_cmd53_t Date: Thu, 3 Mar 2016 14:28:22 +0900 Message-Id: <1456982904-8063-3-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456982904-8063-1-git-send-email-chaehyun.lim@gmail.com> References: <1456982904-8063-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 removes typedef from struct sdio_cmd53_t and renames it to sdio_cmd53. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_sdio.c | 10 +++++----- drivers/staging/wilc1000/wilc_wlan_if.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c index 37fa1ed..a839a79 100644 --- a/drivers/staging/wilc1000/wilc_sdio.c +++ b/drivers/staging/wilc1000/wilc_sdio.c @@ -81,7 +81,7 @@ static int wilc_sdio_cmd52(struct wilc *wilc, struct sdio_cmd52 *cmd) } -static int wilc_sdio_cmd53(struct wilc *wilc, sdio_cmd53_t *cmd) +static int wilc_sdio_cmd53(struct wilc *wilc, struct sdio_cmd53 *cmd) { struct sdio_func *func = container_of(wilc->dev, struct sdio_func, dev); int size, ret; @@ -396,7 +396,7 @@ static int sdio_write_reg(struct wilc *wilc, u32 addr, u32 data) goto _fail_; } } else { - sdio_cmd53_t cmd; + struct sdio_cmd53 cmd; /** * set the AHB address @@ -431,7 +431,7 @@ static int sdio_write(struct wilc *wilc, u32 addr, u8 *buf, u32 size) { struct sdio_func *func = dev_to_sdio_func(wilc->dev); u32 block_size = g_sdio.block_size; - sdio_cmd53_t cmd; + struct sdio_cmd53 cmd; int nblk, nleft, ret; cmd.read_write = 1; @@ -536,7 +536,7 @@ static int sdio_read_reg(struct wilc *wilc, u32 addr, u32 *data) } *data = cmd.data; } else { - sdio_cmd53_t cmd; + struct sdio_cmd53 cmd; if (!sdio_set_func0_csa_address(wilc, addr)) goto _fail_; @@ -571,7 +571,7 @@ static int sdio_read(struct wilc *wilc, u32 addr, u8 *buf, u32 size) { struct sdio_func *func = dev_to_sdio_func(wilc->dev); u32 block_size = g_sdio.block_size; - sdio_cmd53_t cmd; + struct sdio_cmd53 cmd; int nblk, nleft, ret; cmd.read_write = 0; diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/drivers/staging/wilc1000/wilc_wlan_if.h index dcde9ef..9eb123b 100644 --- a/drivers/staging/wilc1000/wilc_wlan_if.h +++ b/drivers/staging/wilc1000/wilc_wlan_if.h @@ -58,7 +58,7 @@ struct sdio_cmd52 { u32 data: 8; }; -typedef struct { +struct sdio_cmd53 { u32 read_write: 1; u32 function: 3; u32 block_mode: 1; @@ -67,7 +67,7 @@ typedef struct { u32 count: 9; u8 *buffer; u32 block_size; -} sdio_cmd53_t; +}; #define WILC_MAC_INDICATE_STATUS 0x1 #define WILC_MAC_STATUS_INIT -1