From patchwork Thu Mar 3 05:28:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8488001 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 6FA189F8A8 for ; Thu, 3 Mar 2016 05:28:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 65C8120251 for ; Thu, 3 Mar 2016 05:28:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E5B920145 for ; Thu, 3 Mar 2016 05:28:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751149AbcCCF2c (ORCPT ); Thu, 3 Mar 2016 00:28:32 -0500 Received: from mail-pa0-f67.google.com ([209.85.220.67]:33635 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750908AbcCCF2c (ORCPT ); Thu, 3 Mar 2016 00:28:32 -0500 Received: by mail-pa0-f67.google.com with SMTP id gc2so54881pab.0 for ; Wed, 02 Mar 2016 21:28:31 -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; bh=kEshDgywy39W3DvB2tlI1Xb+gk/HLX9oCKIdVNIoAGc=; b=07IK/1ARugB1j4nUKx4TQvK7sKYbTE4x7DQ/TLYcyx5p77QnNWx9D6OZAOBUlCJ8+a Qfi/+oqHlLIKjjah3bW4LImYywoHwXvJBW1ndsa+QW7UMwcdnvyA9o8/yo3GPVT+2u7A cIQTlpGT+GDQlshzabAiJiwXi9ToREZc4rYykMR4Yew67rwG0oI4RIKLT1tvoFYKR8Kp haV9p8XfMnhp+uNWuuwzafq20Zg5lS7u7wpQC83xrrncbQhUyc+tEDkp+8E2gMmbEqh1 sK5jOBwP9HnRQLHxWT2wXa/6sn/Oej7prbcuKdsB2K/+vVFa/y+dvgM+DG4cVNN+cZfp uQEA== 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=kEshDgywy39W3DvB2tlI1Xb+gk/HLX9oCKIdVNIoAGc=; b=XwL/JzcuXkk+fpr+BWyK3VYMt8PpzxJG6ovuDkNTWfn4F2iRjiUUuZwI2QF9DP3P6m dLBENVO1QWJ8wPyTssFXY/aZgh7kPHhUG4rFenpvUWX6nj84z1P4mYOc9D3PICTHpuZx 09RIUsStiTk7FcMw2WSNCOBsD2sFRCseBpCk1sXVdUyzlo6eL/sz2iVLhuF5ezALXk+S c0GQUTGW9GbMFYGyJU+xQP/ciXdrgXy9zzPmMsWJiQKRB49dvJu3Jfm3k15IBjM71HbB o0lX8aAZSqWIqlIyJs/JERaCAk5ZdfgrFIMv4iBnEGAkG4ZSq5WkiX+bylefX1BLETKm 2hLA== X-Gm-Message-State: AD7BkJKlCRSEdQebGhRq3zx0uWV8mXencUItNYxFhbA5XcVsk9L3DIjBxevcTGXPWjdzSg== X-Received: by 10.67.6.10 with SMTP id cq10mr1094462pad.120.1456982911225; Wed, 02 Mar 2016 21:28:31 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 9sm56842972pfc.69.2016.03.02.21.28.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Mar 2016 21:28:30 -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 1/5] staging: wilc1000: remove typedef from struct sdio_cmd52_t Date: Thu, 3 Mar 2016 14:28:20 +0900 Message-Id: <1456982904-8063-1-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 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_cmd52_t and renames it to sdio_cmd52. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_sdio.c | 26 +++++++++++++------------- drivers/staging/wilc1000/wilc_wlan_if.h | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c index 029bd09..37fa1ed 100644 --- a/drivers/staging/wilc1000/wilc_sdio.c +++ b/drivers/staging/wilc1000/wilc_sdio.c @@ -51,7 +51,7 @@ static void wilc_sdio_interrupt(struct sdio_func *func) sdio_claim_host(func); } -static int wilc_sdio_cmd52(struct wilc *wilc, sdio_cmd52_t *cmd) +static int wilc_sdio_cmd52(struct wilc *wilc, struct sdio_cmd52 *cmd) { struct sdio_func *func = container_of(wilc->dev, struct sdio_func, dev); int ret; @@ -145,7 +145,7 @@ static void linux_sdio_remove(struct sdio_func *func) static int sdio_reset(struct wilc *wilc) { - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; int ret; struct sdio_func *func = dev_to_sdio_func(wilc->dev); @@ -266,7 +266,7 @@ static void wilc_sdio_disable_interrupt(struct wilc *dev) static int sdio_set_func0_csa_address(struct wilc *wilc, u32 adr) { struct sdio_func *func = dev_to_sdio_func(wilc->dev); - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; int ret; /** @@ -307,7 +307,7 @@ _fail_: static int sdio_set_func0_block_size(struct wilc *wilc, u32 block_size) { struct sdio_func *func = dev_to_sdio_func(wilc->dev); - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; int ret; cmd.read_write = 1; @@ -343,7 +343,7 @@ _fail_: static int sdio_set_func1_block_size(struct wilc *wilc, u32 block_size) { struct sdio_func *func = dev_to_sdio_func(wilc->dev); - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; int ret; cmd.read_write = 1; @@ -382,7 +382,7 @@ static int sdio_write_reg(struct wilc *wilc, u32 addr, u32 data) data = cpu_to_le32(data); if ((addr >= 0xf0) && (addr <= 0xff)) { - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; cmd.read_write = 1; cmd.function = 0; @@ -522,7 +522,7 @@ static int sdio_read_reg(struct wilc *wilc, u32 addr, u32 *data) int ret; if ((addr >= 0xf0) && (addr <= 0xff)) { - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; cmd.read_write = 0; cmd.function = 0; @@ -670,7 +670,7 @@ static int sdio_deinit(struct wilc *wilc) static int sdio_init(struct wilc *wilc, bool resume) { struct sdio_func *func = dev_to_sdio_func(wilc->dev); - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; int loop, ret; u32 chipid; @@ -791,7 +791,7 @@ _fail_: static int sdio_read_size(struct wilc *wilc, u32 *size) { u32 tmp; - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; /** * Read DMA count in words @@ -820,7 +820,7 @@ static int sdio_read_int(struct wilc *wilc, u32 *int_status) { struct sdio_func *func = dev_to_sdio_func(wilc->dev); u32 tmp; - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; sdio_read_size(wilc, &tmp); @@ -899,7 +899,7 @@ static int sdio_clear_int_ext(struct wilc *wilc, u32 val) if ((val & EN_VMM) == EN_VMM) reg |= BIT(7); if (reg) { - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; cmd.read_write = 1; cmd.function = 0; @@ -929,7 +929,7 @@ static int sdio_clear_int_ext(struct wilc *wilc, u32 val) ret = 1; for (i = 0; i < g_sdio.nint; i++) { if (flags & 1) { - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; cmd.read_write = 1; cmd.function = 0; @@ -977,7 +977,7 @@ static int sdio_clear_int_ext(struct wilc *wilc, u32 val) vmm_ctl |= BIT(2); if (vmm_ctl) { - sdio_cmd52_t cmd; + struct sdio_cmd52 cmd; cmd.read_write = 1; cmd.function = 0; diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/drivers/staging/wilc1000/wilc_wlan_if.h index f19ecb5..99aaec7 100644 --- a/drivers/staging/wilc1000/wilc_wlan_if.h +++ b/drivers/staging/wilc1000/wilc_wlan_if.h @@ -50,13 +50,13 @@ * ********************************************/ -typedef struct { +struct sdio_cmd52 { u32 read_write: 1; u32 function: 3; u32 raw: 1; u32 address: 17; u32 data: 8; -} sdio_cmd52_t; +}; typedef struct { /* struct { */