All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Cc: peng.fan@nxp.com, yangbo.lu@nxp.com, sjg@chromium.org,
	stefan_b@posteo.net, ashok.reddy.soma@xilinx.com,
	seanga2@gmail.com, nsaenzjulienne@suse.de,
	Jaehoon Chung <jh80.chung@samsung.com>
Subject: [PATCH 1/3] mmc: fsl_esdhc_imx: use mmc_send_cmd instead of dm_mmc_send_cmd
Date: Mon, 31 May 2021 08:30:54 +0900	[thread overview]
Message-ID: <20210530233055.20581-1-jh80.chung@samsung.com> (raw)
In-Reply-To: CGME20210530233005epcas1p1b0550121cc01278a162b2bc8a600e475@epcas1p1.samsung.com

Use mmc_send_cmd instead of dm_mmc_send_cmd.
It doesn't need to distinguish this function.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 drivers/mmc/fsl_esdhc_imx.c | 2 +-
 drivers/mmc/mmc_private.h   | 1 -
 include/mmc.h               | 1 +
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index a4675838e58a..4f4a6a8c9934 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -865,7 +865,7 @@ static void esdhc_stop_tuning(struct mmc *mmc)
 	cmd.cmdarg = 0;
 	cmd.resp_type = MMC_RSP_R1b;
 
-	dm_mmc_send_cmd(mmc->dev, &cmd, NULL);
+	mmc_send_cmd(mmc, &cmd, NULL);
 }
 
 static int fsl_esdhc_execute_tuning(struct udevice *dev, uint32_t opcode)
diff --git a/drivers/mmc/mmc_private.h b/drivers/mmc/mmc_private.h
index a0900e8cadd8..a6cd250d2935 100644
--- a/drivers/mmc/mmc_private.h
+++ b/drivers/mmc/mmc_private.h
@@ -12,7 +12,6 @@
 
 #include <mmc.h>
 
-int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data);
 int mmc_send_status(struct mmc *mmc, unsigned int *status);
 int mmc_poll_for_busy(struct mmc *mmc, int timeout);
 
diff --git a/include/mmc.h b/include/mmc.h
index 8600881705f4..7f8ba2b017ee 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -795,6 +795,7 @@ int mmc_initialize(struct bd_info *bis);
 int mmc_init_device(int num);
 int mmc_init(struct mmc *mmc);
 int mmc_send_tuning(struct mmc *mmc, u32 opcode, int *cmd_error);
+int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data);
 
 #if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT) || \
     CONFIG_IS_ENABLED(MMC_HS200_SUPPORT) || \
-- 
2.29.0


       reply	other threads:[~2021-05-30 23:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20210530233005epcas1p1b0550121cc01278a162b2bc8a600e475@epcas1p1.samsung.com>
2021-05-30 23:30 ` Jaehoon Chung [this message]
     [not found]   ` <CGME20210530233005epcas1p35663c4a3551ccddf4c4223f920d009e3@epcas1p3.samsung.com>
2021-05-30 23:30     ` [PATCH 2/3] mmc: mmc-uclass: change to static about dm function Jaehoon Chung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210530233055.20581-1-jh80.chung@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=ashok.reddy.soma@xilinx.com \
    --cc=nsaenzjulienne@suse.de \
    --cc=peng.fan@nxp.com \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=stefan_b@posteo.net \
    --cc=u-boot@lists.denx.de \
    --cc=yangbo.lu@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.