From: Shawn Lin <shawn.lin@rock-chips.com>
To: Jaehoon Chung <jh80.chung@samsung.com>,
Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
Shawn Lin <shawn.lin@rock-chips.com>
Subject: [PATCH 1/3] mmc: dw_mmc: expose dw_mci_pltfm_prepare_command
Date: Tue, 19 Jan 2016 11:40:20 +0800 [thread overview]
Message-ID: <1453174820-13581-1-git-send-email-shawn.lin@rock-chips.com> (raw)
In-Reply-To: <1453174787-13536-1-git-send-email-shawn.lin@rock-chips.com>
This patch change dw_mci_pltfm_prepare_command into
more like a library call.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---
drivers/mmc/host/dw_mmc-pltfm.c | 3 ++-
drivers/mmc/host/dw_mmc-pltfm.h | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c
index 81bdeeb..3752035 100644
--- a/drivers/mmc/host/dw_mmc-pltfm.c
+++ b/drivers/mmc/host/dw_mmc-pltfm.c
@@ -26,10 +26,11 @@
#include "dw_mmc.h"
#include "dw_mmc-pltfm.h"
-static void dw_mci_pltfm_prepare_command(struct dw_mci *host, u32 *cmdr)
+inline void dw_mci_pltfm_prepare_command(struct dw_mci *host, u32 *cmdr)
{
*cmdr |= SDMMC_CMD_USE_HOLD_REG;
}
+EXPORT_SYMBOL_GPL(dw_mci_pltfm_prepare_command);
static const struct dw_mci_drv_data socfpga_drv_data = {
.prepare_command = dw_mci_pltfm_prepare_command,
diff --git a/drivers/mmc/host/dw_mmc-pltfm.h b/drivers/mmc/host/dw_mmc-pltfm.h
index 68e7fd2..c607f68 100644
--- a/drivers/mmc/host/dw_mmc-pltfm.h
+++ b/drivers/mmc/host/dw_mmc-pltfm.h
@@ -15,6 +15,6 @@
extern int dw_mci_pltfm_register(struct platform_device *pdev,
const struct dw_mci_drv_data *drv_data);
extern int dw_mci_pltfm_remove(struct platform_device *pdev);
+extern void dw_mci_pltfm_prepare_command(struct dw_mci *host, u32 *cmdr);
extern const struct dev_pm_ops dw_mci_pltfm_pmops;
-
#endif /* _DW_MMC_PLTFM_H_ */
--
2.3.7
next prev parent reply other threads:[~2016-01-19 3:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-19 3:39 [PATCH 0/3] Convert dw_mci_pltfm_prepare_command into a library call Shawn Lin
2016-01-19 3:40 ` Shawn Lin [this message]
2016-01-19 3:52 ` [PATCH 2/3] mmc: dw_mmc-rockchip: remove prepare_command hook Shawn Lin
2016-01-19 3:53 ` [PATCH 3/3] mmc: dw_mmc-exynos: wrapper prepare_command Shawn Lin
2016-01-19 4:07 ` [PATCH 0/3] Convert dw_mci_pltfm_prepare_command into a library call Jaehoon Chung
2016-01-20 8:26 ` Jaehoon Chung
2016-01-20 9:21 ` Shawn Lin
2016-01-20 12:35 ` Shawn Lin
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=1453174820-13581-1-git-send-email-shawn.lin@rock-chips.com \
--to=shawn.lin@rock-chips.com \
--cc=jh80.chung@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®