summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.h
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2008-03-17 10:29:38 +0100
committerPierre Ossman <drzeus@drzeus.cx>2008-04-18 20:05:27 +0200
commit2f730fec83be76f1b3b8f0066b3447f55c50d7a0 (patch)
tree1535e9ae05511c44feea173b1c2fd935d1945ae3 /drivers/mmc/host/sdhci.h
parentb69c9058907642f8e1b32076906755c6623ea060 (diff)
downloadlinux-2f730fec83be76f1b3b8f0066b3447f55c50d7a0.tar.bz2
sdhci: allow led to be controlled freely
Hook up the controller LED to the LED subsystem, allowing more flexible control than simply indicating an ongoing request. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/host/sdhci.h')
-rw-r--r--drivers/mmc/host/sdhci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index 3288e209ba44..7fb02e177a3d 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -168,6 +168,10 @@ struct sdhci_host {
struct sdhci_chip *chip;
struct mmc_host *mmc; /* MMC structure */
+#ifdef CONFIG_LEDS_CLASS
+ struct led_classdev led; /* LED control */
+#endif
+
spinlock_t lock; /* Mutex */
int flags; /* Host attributes */