From patchwork Thu Apr 14 04:19:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 8831381 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4358B9F54F for ; Thu, 14 Apr 2016 04:19:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 71EAA20357 for ; Thu, 14 Apr 2016 04:19:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B6FA202DD for ; Thu, 14 Apr 2016 04:19:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751742AbcDNETJ (ORCPT ); Thu, 14 Apr 2016 00:19:09 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:44612 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbcDNETI (ORCPT ); Thu, 14 Apr 2016 00:19:08 -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 u3E4IgsL015587; Thu, 14 Apr 2016 13:18:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u3E4IgsL015587 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1460607523; bh=ZLajRRO4wI/qUfKe50yrM0WLfxcmA0F1F+EGEWBnmCM=; h=From:To:Cc:Subject:Date:From; b=AiRgi36M7umU63KSQdObPFClpxa9v7c7uNCj1HXg2M6COt1BftafaBmGsQ/rP/GAx NBQpmq5rG88w9nY8C8CnHmY35QaE1rHvtL2jTJHuzhlw8w/MQRmPSvPRE2tKP6GNUs thWTsrcA0RHTBHYTitXNj8E0lCzCMU/2QtxIuH5LyPQsBjgvfyQrJpLyXtj4FZO1iO rg57RHnECD5y5Ll7aMSjPiun0lYxyk47l2OrsBRcyHAawVW3Dq0CrYYlEpuyVWwRX+ qZO/flBPdx8w40D6jAyDe5Ha2kjTC92Qb01ZY4OPB0ZlhDNME/KS1nWGFvhmSaZ0g9 wXiBVVNxivqzQ== 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 1/2] mmc: sdhci: use IS_REACHABLE(CONFIG_LEDS_CLASS) to enable LED code Date: Thu, 14 Apr 2016 13:19:39 +0900 Message-Id: <1460607580-22599-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Adrian Hunter --- Changes in v2: - Rebase on the next branch (7766e58f5be39dcc35d30a703422a3d0b8ec8c0c) drivers/mmc/host/sdhci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index b284924..eedc18a 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -259,9 +259,7 @@ static void __sdhci_led_deactivate(struct sdhci_host *host) sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL); } -#if defined(CONFIG_LEDS_CLASS) || (defined(CONFIG_LEDS_CLASS_MODULE) && \ - defined(CONFIG_MMC_SDHCI_MODULE)) - +#if IS_REACHABLE(CONFIG_LEDS_CLASS) static void sdhci_led_control(struct led_classdev *led, enum led_brightness brightness) {