From patchwork Tue Sep 15 13:19:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 53650 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 2DF5E22A22 for ; Tue, 15 Sep 2015 13:20:14 +0000 (UTC) Received: by lamf6 with SMTP id f6sf24645767lam.1 for ; Tue, 15 Sep 2015 06:20:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=oX7DW0HGjbuyMmU5Iqcfghr9zqWFOfCGVanP0gUAngs=; b=mlxP/mxjdFsZ1SeGc4pG6xDnhY2osIQi/0zZCDrzULvhtsendwmbPGFLt7ckJ5H+Nx Vi6QjU3jcLyQXMypRT1VhkAAbwHfC7sWGPkY73dgNWHa9aT5UR7PypZSCUsOH65HfOrr UR0tLGSCvZbtvAO/zpl1WwsWDCgikCM9FNhDHpKdZRpNYVgQSvqkqaZQ4Y0g2eBu6aNl XjAttKP6bi9vDBniK/5C6npG+GU1Ek2JtWIF5F9KNeSp+U3D4xAdz6CGdhf2IDS5IjSu bZU0puoW6QEO6eC9+YMwgXPg4qUaiOw/quSr+50HMR/3UqH51J/wXEp38ovH59tX1EQN 3scw== X-Gm-Message-State: ALoCoQm4b0OF/1iwcatsMmqyI615BTBVyOyk8BcL4KvV0AUGn2dFqc6K+nanhPF4LEf8arXfKpAv X-Received: by 10.112.158.202 with SMTP id ww10mr4344398lbb.13.1442323213139; Tue, 15 Sep 2015 06:20:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.134 with SMTP id dc6ls579096lad.94.gmail; Tue, 15 Sep 2015 06:20:13 -0700 (PDT) X-Received: by 10.152.28.167 with SMTP id c7mr21061356lah.17.1442323212998; Tue, 15 Sep 2015 06:20:12 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id qb2si13565439lbb.85.2015.09.15.06.20.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 06:20:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lagj9 with SMTP id j9so108833970lag.2 for ; Tue, 15 Sep 2015 06:20:12 -0700 (PDT) X-Received: by 10.112.51.142 with SMTP id k14mr19533761lbo.76.1442323212872; Tue, 15 Sep 2015 06:20:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1801120lbq; Tue, 15 Sep 2015 06:20:12 -0700 (PDT) X-Received: by 10.112.198.97 with SMTP id jb1mr21037021lbc.8.1442323212274; Tue, 15 Sep 2015 06:20:12 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id ps9si13550276lbb.163.2015.09.15.06.20.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 06:20:12 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lamp12 with SMTP id p12so106132313lam.0 for ; Tue, 15 Sep 2015 06:20:12 -0700 (PDT) X-Received: by 10.112.140.104 with SMTP id rf8mr19460747lbb.30.1442323212064; Tue, 15 Sep 2015 06:20:12 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by smtp.gmail.com with ESMTPSA id p8sm3296313laf.12.2015.09.15.06.20.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Sep 2015 06:20:10 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Subject: [PATCH] mmc: core: Convert __mmc_switch() into an internal core function Date: Tue, 15 Sep 2015 15:19:45 +0200 Message-Id: <1442323185-23928-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , As there are no users of the __mmc_switch() API, except for the mmc core itself, let's convert it from an exported function into an internal. Signed-off-by: Ulf Hansson --- drivers/mmc/core/mmc_ops.c | 1 - drivers/mmc/core/mmc_ops.h | 3 +++ include/linux/mmc/core.h | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 0e9ae1c..57f3a21 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -579,7 +579,6 @@ out: return err; } -EXPORT_SYMBOL_GPL(__mmc_switch); int mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, unsigned int timeout_ms) diff --git a/drivers/mmc/core/mmc_ops.h b/drivers/mmc/core/mmc_ops.h index f498f9a..f1b8e81 100644 --- a/drivers/mmc/core/mmc_ops.h +++ b/drivers/mmc/core/mmc_ops.h @@ -28,6 +28,9 @@ int mmc_bus_test(struct mmc_card *card, u8 bus_width); int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status); int mmc_can_ext_csd(struct mmc_card *card); int mmc_switch_status_error(struct mmc_host *host, u32 status); +int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, + unsigned int timeout_ms, bool use_busy_signal, bool send_status, + bool ignore_crc); #endif diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 258daf9..79a31d3 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -152,8 +152,6 @@ extern int mmc_app_cmd(struct mmc_host *, struct mmc_card *); extern int mmc_wait_for_app_cmd(struct mmc_host *, struct mmc_card *, struct mmc_command *, int); extern void mmc_start_bkops(struct mmc_card *card, bool from_exception); -extern int __mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int, bool, - bool, bool); extern int mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int); extern int mmc_send_tuning(struct mmc_host *host); extern int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd);