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: 9295957 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 B3234607F0 for ; Tue, 23 Aug 2016 16:41:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A438528CBF for ; Tue, 23 Aug 2016 16:41:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 991F728CC1; Tue, 23 Aug 2016 16:41:40 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D88828C92 for ; Tue, 23 Aug 2016 16:41:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754283AbcHWQla (ORCPT ); Tue, 23 Aug 2016 12:41:30 -0400 Received: from condef002-v.nifty.com ([210.131.4.239]:45388 "EHLO condef002-v.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754600AbcHWQkz (ORCPT ); Tue, 23 Aug 2016 12:40:55 -0400 X-Greylist: delayed 500 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Aug 2016 12:40:54 EDT Received: from conuserg-08.nifty.com ([10.26.8.71])by condef002-v.nifty.com with ESMTP id u7NGU6E1029504; Wed, 24 Aug 2016 01:30:06 +0900 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 Cc: Kalle Valo , Andrew Morton , Masahiro Yamada , netdev@vger.kernel.org, linux-kernel@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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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,