mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mmc: mmc_spi: Remove platform data .get_cd() and .get_ro() callbacks
All platforms now pass the CD and RO GPIOs to the MMC SPI driver, those callbacks are not used anymore. Remove them. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: H Hartley Sweeten <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
f0af3689e7
commit
62b6af5c7e
2 changed files with 2 additions and 31 deletions
|
|
@ -1273,31 +1273,11 @@ static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
|
|||
}
|
||||
}
|
||||
|
||||
static int mmc_spi_get_ro(struct mmc_host *mmc)
|
||||
{
|
||||
struct mmc_spi_host *host = mmc_priv(mmc);
|
||||
|
||||
if (host->pdata && host->pdata->get_ro)
|
||||
return !!host->pdata->get_ro(mmc->parent);
|
||||
else
|
||||
return mmc_gpio_get_ro(mmc);
|
||||
}
|
||||
|
||||
static int mmc_spi_get_cd(struct mmc_host *mmc)
|
||||
{
|
||||
struct mmc_spi_host *host = mmc_priv(mmc);
|
||||
|
||||
if (host->pdata && host->pdata->get_cd)
|
||||
return !!host->pdata->get_cd(mmc->parent);
|
||||
else
|
||||
return mmc_gpio_get_cd(mmc);
|
||||
}
|
||||
|
||||
static const struct mmc_host_ops mmc_spi_ops = {
|
||||
.request = mmc_spi_request,
|
||||
.set_ios = mmc_spi_set_ios,
|
||||
.get_ro = mmc_spi_get_ro,
|
||||
.get_cd = mmc_spi_get_cd,
|
||||
.get_ro = mmc_gpio_get_ro,
|
||||
.get_cd = mmc_gpio_get_cd,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue