From patchwork Tue Aug 23 16:27:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 9295945 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8FF5A60574 for ; Tue, 23 Aug 2016 16:30:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 814A728CA9 for ; Tue, 23 Aug 2016 16:30:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75D3E28CBF; Tue, 23 Aug 2016 16:30:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 12F4A28CA9 for ; Tue, 23 Aug 2016 16:30:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bcEaP-0000Cf-MJ; Tue, 23 Aug 2016 16:30:01 +0000 Received: from conuserg-08.nifty.com ([210.131.2.75]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bcEaM-00006z-Ru for ath10k@lists.infradead.org; Tue, 23 Aug 2016 16:30:00 +0000 Received: from grover.sesame (FL1-119-242-215-193.osk.mesh.ad.jp [119.242.215.193]) (authenticated) by conuserg-08.nifty.com with ESMTP id u7NGSiCt031722; Wed, 24 Aug 2016 01:28:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com u7NGSiCt031722 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1471969736; bh=/R1GZ6LJmv59li4Z/bh6kfxml163uXoaBqkV6XbWrig=; h=From:To:Cc:Subject:Date:From; b=m6WAfn4qIHbPStOIdBA73lPVQbI5S/UBdhIKQCDzPMq4ex4gwl7TGqHYeep++WGI+ D+/oDnbJGPerYbd/yEix5YOKUO9T/BoUZFfrWpo4uWQVbrIL3JwHuRUFn4kB5RlMSe HgqY2Gf6dMUTp06uORyISEwOuuJYGd+B2vFL3Xrsxz6s21+k2+Y1/2sI86iyIpUPq0 LhoCI5nDMc2f4PJfT7nRL3YnU3D/WJ2LUxqxD0t358HEGCxOYjHLWfsxW13xf5EBgZ lZuW8yYnzX+yQj+xUHTHZEpb4NhyVJRx48IkCEcO7++bkH7T3SKq1wlwf6zBpMy4F+ WpeH5EUWYZCrA== X-Nifty-SrcIP: [119.242.215.193] From: Masahiro Yamada To: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH] ath10k: replace config_enabled() with IS_REACHABLE() Date: Wed, 24 Aug 2016 01:27:26 +0900 Message-Id: <1471969646-13119-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160823_092959_331426_A2574298 X-CRM114-Status: UNSURE ( 8.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , Kalle Valo , Andrew Morton , linux-kernel@vger.kernel.org, netdev@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 97f2645f358b ("tree-wide: replace config_enabled() with IS_ENABLED()") mostly did away with config_enabled(). This is one of the postponed TODO items as config_enabled() is used for a tristate option here. Theoretically, config_enabled() is equivalent to IS_BUILTIN(), but I guess IS_REACHABLE() is the best fit for this case because both CONFIG_HWMON and CONFIG_ATH10K are tristate. Signed-off-by: Masahiro Yamada --- drivers/net/wireless/ath/ath10k/thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c index 444b52c..0a47269 100644 --- a/drivers/net/wireless/ath/ath10k/thermal.c +++ b/drivers/net/wireless/ath/ath10k/thermal.c @@ -192,7 +192,7 @@ int ath10k_thermal_register(struct ath10k *ar) /* Avoid linking error on devm_hwmon_device_register_with_groups, I * guess linux/hwmon.h is missing proper stubs. */ - if (!config_enabled(CONFIG_HWMON)) + if (!IS_REACHABLE(CONFIG_HWMON)) return 0; hwmon_dev = devm_hwmon_device_register_with_groups(ar->dev,