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

Configure Feed

Select the types of activity you want to include in your feed.

mmc: rename mmc_can_gpio_ro() to mmc_host_can_gpio_ro()

mmc_can_* functions sometimes relate to the card and sometimes to the host.
Make it obvious by renaming this function to include 'host'.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250401095847.29271-12-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Wolfram Sang and committed by
Ulf Hansson
2e1a26ed da012e1e

+7 -7
+2 -2
drivers/mmc/core/slot-gpio.c
··· 275 275 } 276 276 EXPORT_SYMBOL(mmc_gpiod_request_ro); 277 277 278 - bool mmc_can_gpio_ro(struct mmc_host *host) 278 + bool mmc_host_can_gpio_ro(struct mmc_host *host) 279 279 { 280 280 struct mmc_gpio *ctx = host->slot.handler_priv; 281 281 282 282 return ctx->ro_gpio ? true : false; 283 283 } 284 - EXPORT_SYMBOL(mmc_can_gpio_ro); 284 + EXPORT_SYMBOL(mmc_host_can_gpio_ro);
+1 -1
drivers/mmc/host/renesas_sdhi_core.c
··· 1112 1112 host->mmc->caps2 &= ~(MMC_CAP2_HS400 | MMC_CAP2_HS400_ES); 1113 1113 1114 1114 /* For some SoC, we disable internal WP. GPIO may override this */ 1115 - if (mmc_can_gpio_ro(host->mmc)) 1115 + if (mmc_host_can_gpio_ro(host->mmc)) 1116 1116 mmc_data->capabilities2 &= ~MMC_CAP2_NO_WRITE_PROTECT; 1117 1117 1118 1118 /* SDR speeds are only available on Gen2+ */
+1 -1
drivers/mmc/host/sdhci-omap.c
··· 1270 1270 mmc->f_max = 48000000; 1271 1271 } 1272 1272 1273 - if (!mmc_can_gpio_ro(mmc)) 1273 + if (!mmc_host_can_gpio_ro(mmc)) 1274 1274 mmc->caps2 |= MMC_CAP2_NO_WRITE_PROTECT; 1275 1275 1276 1276 pltfm_host->clk = devm_clk_get(dev, "fck");
+1 -1
drivers/mmc/host/sdhci.c
··· 2571 2571 is_readonly = 0; 2572 2572 } else if (host->ops->get_ro) { 2573 2573 is_readonly = host->ops->get_ro(host); 2574 - } else if (mmc_can_gpio_ro(mmc)) { 2574 + } else if (mmc_host_can_gpio_ro(mmc)) { 2575 2575 is_readonly = mmc_gpio_get_ro(mmc); 2576 2576 /* Do not invert twice */ 2577 2577 allow_invert = !(mmc->caps2 & MMC_CAP2_RO_ACTIVE_HIGH);
+1 -1
drivers/mmc/host/tmio_mmc_core.c
··· 1176 1176 dma_max_mapping_size(&pdev->dev)); 1177 1177 mmc->max_seg_size = mmc->max_req_size; 1178 1178 1179 - if (mmc_can_gpio_ro(mmc)) 1179 + if (mmc_host_can_gpio_ro(mmc)) 1180 1180 _host->ops.get_ro = mmc_gpio_get_ro; 1181 1181 1182 1182 if (mmc_host_can_gpio_cd(mmc))
+1 -1
include/linux/mmc/slot-gpio.h
··· 25 25 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on); 26 26 void mmc_gpiod_request_cd_irq(struct mmc_host *host); 27 27 bool mmc_host_can_gpio_cd(struct mmc_host *host); 28 - bool mmc_can_gpio_ro(struct mmc_host *host); 28 + bool mmc_host_can_gpio_ro(struct mmc_host *host); 29 29 30 30 #endif