aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/host.h
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2006-12-26 09:11:23 -0500
committerPierre Ossman <drzeus@drzeus.cx>2007-02-04 14:54:06 -0500
commitf22ee4edf63e7480511112d9965c71e07be3f8b7 (patch)
tree2fd5b00cf973804c128b59eddb5b27b5492881d7 /include/linux/mmc/host.h
parent279bc4450989215e741c2c9d3a726f1ac96ede40 (diff)
mmc: replace host->card_busy
As card_busy was only used to indicate if the host was exclusively claimed and not really used to identify a particular card, replacing it with just a boolean makes things a lot more easily understandable. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc/host.h')
-rw-r--r--include/linux/mmc/host.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index c15ae1986b98..dc4c6e395198 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -106,8 +106,9 @@ struct mmc_host {
106 struct list_head cards; /* devices attached to this host */ 106 struct list_head cards; /* devices attached to this host */
107 107
108 wait_queue_head_t wq; 108 wait_queue_head_t wq;
109 spinlock_t lock; /* card_busy lock */ 109 spinlock_t lock; /* claimed lock */
110 struct mmc_card *card_busy; /* the MMC card claiming host */ 110 unsigned int claimed:1; /* host exclusively claimed */
111
111 struct mmc_card *card_selected; /* the selected MMC card */ 112 struct mmc_card *card_selected; /* the selected MMC card */
112 113
113 struct delayed_work detect; 114 struct delayed_work detect;