projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f78230
)
mmc: sdhci: use IS_ENABLE(CONFIG_LEDS_CLASS) to enable LED struct members
author
Masahiro Yamada
<
[email protected]
>
Thu, 14 Apr 2016 04:19:40 +0000
(13:19 +0900)
committer
Ulf Hansson
<
[email protected]
>
Mon, 2 May 2016 08:33:36 +0000
(10:33 +0200)
defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE)
is equivalent to:
IS_ENABLED(CONFIG_LEDS_CLASS)
Signed-off-by: Masahiro Yamada <
[email protected]
>
Acked-by: Adrian Hunter <
[email protected]
>
Signed-off-by: Ulf Hansson <
[email protected]
>
drivers/mmc/host/sdhci.h
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci.h
b/drivers/mmc/host/sdhci.h
index 502627d71deb49d964d4030d7bebafc79eadb7b6..609f87ca536b845abf355ac9032cdc3c45c25ce2 100644
(file)
--- a/
drivers/mmc/host/sdhci.h
+++ b/
drivers/mmc/host/sdhci.h
@@
-428,7
+428,7
@@
struct sdhci_host {
struct mmc_host_ops mmc_host_ops; /* MMC host ops */
u64 dma_mask; /* custom DMA mask */
-#if
defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE
)
+#if
IS_ENABLED(CONFIG_LEDS_CLASS
)
struct led_classdev led; /* LED control */
char led_name[32];
#endif