Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wolfram Sang and committed by
Ulf Hansson
9723f69d 01c5d28a

+3 -2
+2 -1
drivers/mmc/core/core.c
··· 2017 2017 } 2018 2018 EXPORT_SYMBOL(mmc_hw_reset); 2019 2019 2020 - int mmc_sw_reset(struct mmc_host *host) 2020 + int mmc_sw_reset(struct mmc_card *card) 2021 2021 { 2022 + struct mmc_host *host = card->host; 2022 2023 int ret; 2023 2024 2024 2025 if (!host->bus_ops->sw_reset)
+1 -1
include/linux/mmc/core.h
··· 176 176 int retries); 177 177 178 178 int mmc_hw_reset(struct mmc_card *card); 179 - int mmc_sw_reset(struct mmc_host *host); 179 + int mmc_sw_reset(struct mmc_card *card); 180 180 void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card); 181 181 182 182 #endif /* LINUX_MMC_CORE_H */