From patchwork Thu Apr 14 04:19:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 65777 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp380259qge; Wed, 13 Apr 2016 21:19:25 -0700 (PDT) X-Received: by 10.66.136.41 with SMTP id px9mr18137839pab.80.1460607565468; Wed, 13 Apr 2016 21:19:25 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id eh2si7053779pac.155.2016.04.13.21.19.25; Wed, 13 Apr 2016 21:19:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752342AbcDNETW (ORCPT + 2 others); Thu, 14 Apr 2016 00:19:22 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:44611 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbcDNETJ (ORCPT ); Thu, 14 Apr 2016 00:19:09 -0400 Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id u3E4IgsM015587; Thu, 14 Apr 2016 13:18:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u3E4IgsM015587 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1460607524; bh=GxLiNXOYEjkg164WN5nbKhDT+B+cV/85EY7eHTCNbiI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uyx8xuwR8lr4Z8ZMe/Po6UMhjIvXlhwCYlGVtKwH+UBmIP9ZhVlE/R+TP2GmpO/qd vBrl1BnDmnIhP7au+rYajEmxEtaKwZIcA+evgggmcZ3HHuWzvwaNJ1bdY/hQ7EcR1m MzKm/EEH/gXwFeDcwvc9tO/64M6KbVL6E1PT7UlxesSbQs6DozpMZidpGjns8+cJYk 828YnXEmd4tazI5SnQAO8CK3ZDuqhpzfGp5LVgm9DcRt9nWnPO8JkPkXPghDkfZkva sb1FUt3y/s5CYIepqCDuQeJO84z35/+MD4DGT37Qd53iVO2yvMEi1pIm7q4PLPNgtG 8aWaTtieTPNJg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mmc@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org, Adrian Hunter , Ulf Hansson Subject: [PATCH v2 2/2] mmc: sdhci: use IS_ENABLE(CONFIG_LEDS_CLASS) to enable LED struct members Date: Thu, 14 Apr 2016 13:19:40 +0900 Message-Id: <1460607580-22599-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460607580-22599-1-git-send-email-yamada.masahiro@socionext.com> References: <1460607580-22599-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE) is equivalent to: IS_ENABLED(CONFIG_LEDS_CLASS) Signed-off-by: Masahiro Yamada --- Changes in v2: - Newly added drivers/mmc/host/sdhci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 0decc85..27e8603 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