mmc: core: First step in cleaning up public mmc header files
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 13 Jan 2017 13:14:06 +0000 (14:14 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:19 +0000 (13:20 +0100)
commit8da007348bf52a91e5137d27d7dcd528edbb80ce
tree89202d38793e7b3941173f1d5f6184138dfb59cb
parente1c6ec26b853e9062f0b3daaf695c546d0702953
mmc: core: First step in cleaning up public mmc header files

This is the first step in cleaning up the public 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>
include/linux/mmc/card.h
include/linux/mmc/core.h
include/linux/mmc/host.h
include/linux/mmc/mmc.h
include/linux/mmc/slot-gpio.h