mmc: sdhci: use IS_REACHABLE(CONFIG_LEDS_CLASS) to enable LED code
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 14 Apr 2016 04:19:39 +0000 (13:19 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:35 +0000 (10:33 +0200)
commit4f78230fd79d6f9e659f205b4ab0799e1635554d
tree26f0742b8e53f64ab3ceba5e5c445c4ebc67dcfe
parent4228b21390f55616e50d2cfa3a374489b930a130
mmc: sdhci: use IS_REACHABLE(CONFIG_LEDS_CLASS) to enable LED code

defined(CONFIG_LEDS_CLASS) || (defined(CONFIG_LEDS_CLASS_MODULE) && \
    defined(CONFIG_MMC_SDHCI_MODULE))

is equivalent to:

defined(CONFIG_LEDS_CLASS) || (defined(CONFIG_LEDS_CLASS_MODULE) && \
    defined(MODULE))

and it can also be written shortly as:

IS_REACHABLE(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>
drivers/mmc/host/sdhci.c