mmc: core: export mmc_host_may_gate_card function
MMC Host driver might want to use the mmc_host_may_gate_card() API to know whether the clock can be gated to the card or not hence export this function for usage outside its current scope. Change-Id: I9ec4173063e2505eca179161cdf8cda033a3fd4b Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> [merez@codeaurora.org: fix trivial conflicts] Signed-off-by: Maya Erez <merez@codeaurora.org>
This commit is contained in:
parent
a4ec42db59
commit
03dbfc78cf
2 changed files with 2 additions and 1 deletions
|
@ -179,7 +179,7 @@ void mmc_host_clk_hold(struct mmc_host *host)
|
|||
* mmc_host_may_gate_card - check if this card may be gated
|
||||
* @card: card to check.
|
||||
*/
|
||||
static bool mmc_host_may_gate_card(struct mmc_card *card)
|
||||
bool mmc_host_may_gate_card(struct mmc_card *card)
|
||||
{
|
||||
/* If there is no card we may gate it */
|
||||
if (!card)
|
||||
|
|
|
@ -414,6 +414,7 @@ struct mmc_host {
|
|||
};
|
||||
|
||||
struct mmc_host *mmc_alloc_host(int extra, struct device *);
|
||||
extern bool mmc_host_may_gate_card(struct mmc_card *);
|
||||
int mmc_add_host(struct mmc_host *);
|
||||
void mmc_remove_host(struct mmc_host *);
|
||||
void mmc_free_host(struct mmc_host *);
|
||||
|
|
Loading…
Add table
Reference in a new issue