aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/host.h
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2007-01-13 19:41:45 -0500
committerPierre Ossman <drzeus@drzeus.cx>2007-02-04 14:54:06 -0500
commit11354d03afe9dd0d114e078057158baad4b4eee9 (patch)
tree828e115a262663d075cdfc2a30b87282e576ff8b /include/linux/mmc/host.h
parentf22ee4edf63e7480511112d9965c71e07be3f8b7 (diff)
mmc: let host be parent of cards
Change the parent of cards to be a specific host (a class device), not the physical controller. This is particularly useful when the hardware has multiple slots, meaning multiple hosts. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc/host.h')
-rw-r--r--include/linux/mmc/host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index dc4c6e395198..ae98d6766bdd 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -127,6 +127,7 @@ static inline void *mmc_priv(struct mmc_host *host)
127} 127}
128 128
129#define mmc_dev(x) ((x)->parent) 129#define mmc_dev(x) ((x)->parent)
130#define mmc_classdev(x) (&(x)->class_dev)
130#define mmc_hostname(x) ((x)->class_dev.bus_id) 131#define mmc_hostname(x) ((x)->class_dev.bus_id)
131 132
132extern int mmc_suspend_host(struct mmc_host *, pm_message_t); 133extern int mmc_suspend_host(struct mmc_host *, pm_message_t);