From patchwork Wed Feb 13 19:54:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 158245 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp470072jaa; Wed, 13 Feb 2019 11:54:48 -0800 (PST) X-Received: by 2002:a19:c50c:: with SMTP id w12mr1359829lfe.53.1550087688407; Wed, 13 Feb 2019 11:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550087688; cv=none; d=google.com; s=arc-20160816; b=zVCRobAWiC6QLb0UL4Ns2d3gPuplZqAAduRYIAnnlMTr7np9uKOH+IBYYyKhemgUfx P6vR0TBgaD6++3+0hvAEMoMGfROcLRjKUzlMWp868r0XA2JO3jymuKs8SgUc+D+AlLAT UolnBEyXpXflpGxuLyV3DGiLde+SR15PUfuxpGFhzmgdVx7WLtheMobLxw/5YbdSOvlO dfFQPwRrvevrcbf4EKaivGYdBYCB5U5wyRCpy4rBP3Hb6xgMhaMGHzSTHYMsVxbxeQNF PnLpCD/ExKs2k2o++3osFfIRCM8R9/3mOqInvC5GycP9/0ZrnAZk7r3hdL9xKttLtBrk 5LIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nNUmQRlmGsFjr9KVSiomykiKcxuLQl1wz+4+Y9A/eKs=; b=QBH7MqDAWfhqf/5oghjiqePPuDZUn1eM99sxKrzEACsFj2cVlw/AxeOF+fA54+QxHl r1iyuj4Djrpo83zZN+m3vC4FFwfWVkJGAt5tx4dhxZO4TNNnSflEYGJ4K2Ix2oDU1KO/ MhYi+OxdeZgApXaf3C/1wThg9Kx+vC2QkcfXEFYeHRp6Z6ZIR6h6TR19yGID2ZU9LXm9 G4zfNKle1NoW5qCd3Pkbf2h524lpmB9e24WWjl2Porrg57R4h7rimMKFSTijVAcxk627 LYtqWiriHqAB1Jt5PHomu5+c74wIMK0MW0KEF8b6rWwUfClaKRRSbHuCIiK+T+uZctwr S4hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mXM6wMlq; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s74-v6sor158601lje.7.2019.02.13.11.54.48 for (Google Transport Security); Wed, 13 Feb 2019 11:54:48 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mXM6wMlq; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nNUmQRlmGsFjr9KVSiomykiKcxuLQl1wz+4+Y9A/eKs=; b=mXM6wMlq/AJYzzMxH2No0BUdvf+HJhSX41gBOTqRxMibJCPjaJO6NAU1s/GQtnkGeh NBFG+5iGjLe6fUjfL2zW8gh4Ncx+FR29WpmL7yO1lh4Cb93FDx46VFYWyJDD3tjA5yR+ +nb9/DOwxDL4KQ/IMc5x8L3r6W4dBJZs6BpKCc4CO2vZq2F984Q7/FaOb3+HXsNnUg73 cgftoZdtcf/aCn63t/0LJJGcviNo+XbslP2VVKtdC9U7tH0jDudLlwKrW8HHmx8NfumH +s5pf/GersD1ydXhj/s15J8RwCDlgInJL4dhEAyPXG3d9T1+eW2AtomVG8O60KTj+KZ4 Nm6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nNUmQRlmGsFjr9KVSiomykiKcxuLQl1wz+4+Y9A/eKs=; b=tblnn4p43Y+6/VFwnUclDqyWk4qfotXw5ynonGgOoeNTWcBhFo1dJ3MwUGpwS5uQpV HOFH65xVOPROJlzgpyckpml19wTapMlGV84D1zFzqmkPKhzmFPV3TKBwYae9EysjVmLg yqOa33ast91dtijFdubFPWsZKrV8INGPsaaIglY3uIxkbv1r3FEUFTZxcFjTd821r3L3 EhnvFTR2QXGZAmNK6RF7dsr8CKvJNKTsN7+BgtT4VxcZhqJTmD0dLAknJIQ1/NK992IL V0YuY5D8rLY1Cb6rB2/3kWoUEalzoYPHxWs3abulSNuitB9V/6AfRZ9exnSrfpH1x7pv JaoA== X-Gm-Message-State: AHQUAuY+xLFtLSN98jhDzGvDzBlgHbQgPiIqZ9rYIKi+7rcFqi9vrH6q Hnc6FrXM21+n5B7un7FMdJXK0qxz X-Google-Smtp-Source: AHgI3IZMabaafQfdErup2kNoXaN//pZUjVeIZeW3tRYUoUR1/yNoP51DxADKxcyAqcpBTfRID1tukw== X-Received: by 2002:a2e:5747:: with SMTP id r7-v6mr1300252ljd.141.1550087687888; Wed, 13 Feb 2019 11:54:47 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id g194sm39169lfg.55.2019.02.13.11.54.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 11:54:47 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Adrian Hunter Cc: Ulf Hansson Subject: [PATCH 1/7] mmc: core: Convert mmc_wait_for_app_cmd() to static Date: Wed, 13 Feb 2019 20:54:37 +0100 Message-Id: <20190213195443.18935-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213195443.18935-1-ulf.hansson@linaro.org> References: <20190213195443.18935-1-ulf.hansson@linaro.org> mmc_wait_for_app_cmd() is an internal function for sd_ops.c, thus let's drop the unnecessary export and turn it into static function. Signed-off-by: Ulf Hansson --- drivers/mmc/core/sd_ops.c | 17 +---------------- drivers/mmc/core/sd_ops.h | 3 --- 2 files changed, 1 insertion(+), 19 deletions(-) -- 2.17.1 diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c index 47056d8d1bac..39be4d64bc68 100644 --- a/drivers/mmc/core/sd_ops.c +++ b/drivers/mmc/core/sd_ops.c @@ -52,20 +52,7 @@ int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) } EXPORT_SYMBOL_GPL(mmc_app_cmd); -/** - * mmc_wait_for_app_cmd - start an application command and wait for - completion - * @host: MMC host to start command - * @card: Card to send MMC_APP_CMD to - * @cmd: MMC command to start - * @retries: maximum number of retries - * - * Sends a MMC_APP_CMD, checks the card response, sends the command - * in the parameter and waits for it to complete. Return any error - * that occurred while the command was executing. Do not attempt to - * parse the response. - */ -int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, +static int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, struct mmc_command *cmd, int retries) { struct mmc_request mrq = {}; @@ -116,8 +103,6 @@ int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, return err; } -EXPORT_SYMBOL(mmc_wait_for_app_cmd); - int mmc_app_set_bus_width(struct mmc_card *card, int width) { struct mmc_command cmd = {}; diff --git a/drivers/mmc/core/sd_ops.h b/drivers/mmc/core/sd_ops.h index 0e6c3d51e66d..ffaed5cacc88 100644 --- a/drivers/mmc/core/sd_ops.h +++ b/drivers/mmc/core/sd_ops.h @@ -16,7 +16,6 @@ struct mmc_card; struct mmc_host; -struct mmc_command; int mmc_app_set_bus_width(struct mmc_card *card, int width); int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr); @@ -27,8 +26,6 @@ int mmc_sd_switch(struct mmc_card *card, int mode, int group, u8 value, u8 *resp); int mmc_app_sd_status(struct mmc_card *card, void *ssr); int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card); -int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, - struct mmc_command *cmd, int retries); #endif