mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
08c14071fd
As per suggestion by Linus Walleij: > If you think the names of the functions are confusing then > you may rename them, say like this: > > mmc_host_clk_ungate() -> mmc_host_clk_hold() > mmc_host_clk_gate() -> mmc_host_clk_release() > > Which would make the usecases more clear (This is CC'd to stable@ because the next two patches, which fix observable races, depend on it.) Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Cc: <stable@kernel.org> Signed-off-by: Chris Ball <cjb@laptop.org>
42 lines
966 B
C
42 lines
966 B
C
/*
|
|
* linux/drivers/mmc/core/host.h
|
|
*
|
|
* Copyright (C) 2003 Russell King, All Rights Reserved.
|
|
* Copyright 2007 Pierre Ossman
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef _MMC_CORE_HOST_H
|
|
#define _MMC_CORE_HOST_H
|
|
#include <linux/mmc/host.h>
|
|
|
|
int mmc_register_host_class(void);
|
|
void mmc_unregister_host_class(void);
|
|
|
|
#ifdef CONFIG_MMC_CLKGATE
|
|
void mmc_host_clk_hold(struct mmc_host *host);
|
|
void mmc_host_clk_release(struct mmc_host *host);
|
|
unsigned int mmc_host_clk_rate(struct mmc_host *host);
|
|
|
|
#else
|
|
static inline void mmc_host_clk_hold(struct mmc_host *host)
|
|
{
|
|
}
|
|
|
|
static inline void mmc_host_clk_release(struct mmc_host *host)
|
|
{
|
|
}
|
|
|
|
static inline unsigned int mmc_host_clk_rate(struct mmc_host *host)
|
|
{
|
|
return host->ios.clock;
|
|
}
|
|
#endif
|
|
|
|
void mmc_host_deeper_disable(struct work_struct *work);
|
|
|
|
#endif
|
|
|