mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
mmc: core: improve API to make clear that mmc_sw_reset is for cards
To make it unambiguous that mmc_sw_reset() is for cards and not for controllers, we make the function argument mmc_card instead of mmc_host. There are no users to convert currently. Suggested-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20220408080045.6497-3-wsa+renesas@sang-engineering.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
01c5d28a5b
commit
9723f69d1d
2 changed files with 3 additions and 2 deletions
|
@ -2017,8 +2017,9 @@ int mmc_hw_reset(struct mmc_card *card)
|
|||
}
|
||||
EXPORT_SYMBOL(mmc_hw_reset);
|
||||
|
||||
int mmc_sw_reset(struct mmc_host *host)
|
||||
int mmc_sw_reset(struct mmc_card *card)
|
||||
{
|
||||
struct mmc_host *host = card->host;
|
||||
int ret;
|
||||
|
||||
if (!host->bus_ops->sw_reset)
|
||||
|
|
|
@ -176,7 +176,7 @@ int mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd,
|
|||
int retries);
|
||||
|
||||
int mmc_hw_reset(struct mmc_card *card);
|
||||
int mmc_sw_reset(struct mmc_host *host);
|
||||
int mmc_sw_reset(struct mmc_card *card);
|
||||
void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card);
|
||||
|
||||
#endif /* LINUX_MMC_CORE_H */
|
||||
|
|
Loading…
Reference in a new issue