diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2009-02-14 16:22:39 +0100 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2009-02-18 21:02:38 +0100 |
commit | 5dbace0c9ba110c1a3810a89fa6bf12b7574b5a3 (patch) | |
tree | 278312b69242c236d92d6d8599873c539bd5ab38 /drivers/mmc | |
parent | 58a5dd3e0e77029d3db1f8fa75d0b54b38169d5d (diff) | |
download | kernel_samsung_smdk4412-5dbace0c9ba110c1a3810a89fa6bf12b7574b5a3.zip kernel_samsung_smdk4412-5dbace0c9ba110c1a3810a89fa6bf12b7574b5a3.tar.gz kernel_samsung_smdk4412-5dbace0c9ba110c1a3810a89fa6bf12b7574b5a3.tar.bz2 |
sdhci: fix led naming
Fix the led device naming for the sdhci driver.
The led class documentation defines the led name to have the
form "devicename:colour:function" while not applicable sections
should be left blank.
To comply with the documentation the led device name is changed
from "mmc*" to "mmc*::".
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 4 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 24d7414..f52f305 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1722,7 +1722,9 @@ int sdhci_add_host(struct sdhci_host *host) #endif #ifdef SDHCI_USE_LEDS_CLASS - host->led.name = mmc_hostname(mmc); + snprintf(host->led_name, sizeof(host->led_name), + "%s::", mmc_hostname(mmc)); + host->led.name = host->led_name; host->led.brightness = LED_OFF; host->led.default_trigger = mmc_hostname(mmc); host->led.brightness_set = sdhci_led_control; diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index ffeab22..ebb8365 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -220,6 +220,7 @@ struct sdhci_host { #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE) struct led_classdev led; /* LED control */ + char led_name[32]; #endif spinlock_t lock; /* Mutex */ |