diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2017-01-13 14:14:07 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-13 13:20:20 +0100 |
commit | 066185d690631478b16045d152b163a51a5e4847 (patch) | |
tree | 2d72d5f38ef8400a46f421dd3fcbd8fdbd454c98 /drivers/mmc/core/pwrseq.h | |
parent | 8da007348bf52a91e5137d27d7dcd528edbb80ce (diff) |
mmc: core: First step in cleaning up private mmc header files
This is the first step in cleaning up the private mmc header files. In this
change we makes sure each header file builds standalone, as that helps to
resolve dependencies.
While changing this, it also seems reasonable to stop including other
headers from inside a header itself which it don't depend upon.
Additionally, in some cases such dependencies are better resolved by
forward declaring the needed struct.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Diffstat (limited to 'drivers/mmc/core/pwrseq.h')
-rw-r--r-- | drivers/mmc/core/pwrseq.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mmc/core/pwrseq.h b/drivers/mmc/core/pwrseq.h index d69e751f148b..39c911aa6ebb 100644 --- a/drivers/mmc/core/pwrseq.h +++ b/drivers/mmc/core/pwrseq.h @@ -8,7 +8,11 @@ #ifndef _MMC_CORE_PWRSEQ_H #define _MMC_CORE_PWRSEQ_H -#include <linux/mmc/host.h> +#include <linux/types.h> + +struct mmc_host; +struct device; +struct module; struct mmc_pwrseq_ops { void (*pre_power_on)(struct mmc_host *host); |