diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-04-14 13:19:40 +0900 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-05-02 10:33:36 +0200 |
commit | 74479c5d5009ebe28de69dd67b769c05ad953a5c (patch) | |
tree | 64e68d8758fc6823bc4ca34e771148ea9f4274b1 /drivers/mmc/host | |
parent | 4f78230fd79d6f9e659f205b4ab0799e1635554d (diff) | |
download | op-kernel-dev-74479c5d5009ebe28de69dd67b769c05ad953a5c.zip op-kernel-dev-74479c5d5009ebe28de69dd67b769c05ad953a5c.tar.gz |
mmc: sdhci: use IS_ENABLE(CONFIG_LEDS_CLASS) to enable LED struct members
defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE)
is equivalent to:
IS_ENABLED(CONFIG_LEDS_CLASS)
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/sdhci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 502627d..609f87c 100644 --- 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 |