mmc: core: export retune_enable/disable api for wifi drivers

Change-Id: I084e155ed71057fa7f39e160a4f3fde964557185
Signed-off-by: Yao Xiao <xiaoyao@rock-chips.com>
This commit is contained in:
Yao Xiao 2018-07-30 11:51:44 +08:00 committed by Tao Huang
parent 0dfdb6557f
commit b4f51792fa
3 changed files with 5 additions and 2 deletions

View File

@ -66,6 +66,7 @@ void mmc_retune_enable(struct mmc_host *host)
mod_timer(&host->retune_timer,
jiffies + host->retune_period * HZ);
}
EXPORT_SYMBOL(mmc_retune_enable);
void mmc_retune_disable(struct mmc_host *host)
{
@ -74,6 +75,7 @@ void mmc_retune_disable(struct mmc_host *host)
host->retune_now = 0;
host->need_retune = 0;
}
EXPORT_SYMBOL(mmc_retune_disable);
void mmc_retune_timer_stop(struct mmc_host *host)
{

View File

@ -17,8 +17,6 @@
int mmc_register_host_class(void);
void mmc_unregister_host_class(void);
void mmc_retune_enable(struct mmc_host *host);
void mmc_retune_disable(struct mmc_host *host);
void mmc_retune_hold(struct mmc_host *host);
void mmc_retune_release(struct mmc_host *host);
int mmc_retune(struct mmc_host *host);

View File

@ -561,4 +561,7 @@ static inline void mmc_retune_recheck(struct mmc_host *host)
host->retune_now = 1;
}
void mmc_retune_enable(struct mmc_host *host);
void mmc_retune_disable(struct mmc_host *host);
#endif /* LINUX_MMC_HOST_H */