From patchwork Tue Apr 2 16:12:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 10882047 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2151317E1 for ; Tue, 2 Apr 2019 16:14:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 124AD2871F for ; Tue, 2 Apr 2019 16:14:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06A4228750; Tue, 2 Apr 2019 16:14:07 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 DDB6F2871F for ; Tue, 2 Apr 2019 16:14:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730437AbfDBQOB (ORCPT ); Tue, 2 Apr 2019 12:14:01 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44609 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728905AbfDBQOA (ORCPT ); Tue, 2 Apr 2019 12:14:00 -0400 Received: by mail-wr1-f67.google.com with SMTP id y7so17376810wrn.11 for ; Tue, 02 Apr 2019 09:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EpsrhrXs+dD79SXvH2cccWShrAxB04KkiEvgDMTNnaM=; b=YbW8teMWpb+FulYDEnukOhdz1UoCdasokDj1SgxZCIQcM/hCEnYtCStgdbU3an5U7K BQzbS7TqfD5ocAviTskX5VKV/1feBeXCVtSv4B95u3qxmrPTZxTqdFApp7j9r/upZqDw +oUbWSiGXoWv8ro6teeu+eOH/nc+GFtSXLnF9dBTE6ChT6KjGqQ31IRrES2K96PvIFMG hwKp+Xs4E/rDFnbwyaxiF5NhTbznGWORtj8ILS2n368EUDP8lxYaYPsEHhwMvAith9F6 J76Gdoau+5UYSoOYveapNBlyjciutzsI4wTfJgGUkQTLVbHqDbGxQEzZiC0GE/Mr5aGI 7Xng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EpsrhrXs+dD79SXvH2cccWShrAxB04KkiEvgDMTNnaM=; b=GJV88hXikIOb8ov3YGdkP26iNe+siv0v0IfNh7jvmk2mI2mSXB9jx2UzydFYoP/xvk ScacgCOC50ISuvgKiTbZrr4FztHEzZYT/t+KTY/jfUhHYl2nYOCgxj+uvTeDQmX8Gxaj fddYkAr2wH7vIpqQi+Y0nBWPIkuxZ6cf6u+EdQvaojYznNBtQNpSBXVf9tHAcNfpsy85 I4Qs3S8efqL95GI/PiRMjDZgx/4mi90zyN2wzPWFiaC7qi9Zs8X8+P/Pgipn3E3sca8f LqZaE8e6l98EXVQrfXB9ybTVriFeoOSilpjynd9ljE6o5/aH2ykNz65AR6BINNu35hYM +oXg== X-Gm-Message-State: APjAAAVxPrc2E7zN5A5VvKb09Tig608jNy32lcyYz/Ob/a8UnFh/j3M6 Wc/ocIlsom8c+/J7umskR0VdzA== X-Google-Smtp-Source: APXvYqwa+okwyNn30H0eeVeqUSSNdHQvMxlo3PRs0KPdwcniY4itLQSGXKGA4H/Bpl5KdeDqtVIizg== X-Received: by 2002:a5d:43c9:: with SMTP id v9mr45200552wrr.269.1554221638711; Tue, 02 Apr 2019 09:13:58 -0700 (PDT) Received: from mai.imgcgcw.net (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id a126sm17054999wmh.4.2019.04.02.09.13.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 09:13:58 -0700 (PDT) From: Daniel Lezcano To: rui.zhang@intel.com, edubezval@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , David Brown , Amit Kucheria , Stephen Rothwell , linux-arm-msm@vger.kernel.org (open list:ARM/QUALCOMM SUPPORT) Subject: [PATCH 5/7] thermal/drivers/core: Remove depends on THERMAL in Kconfig Date: Tue, 2 Apr 2019 18:12:48 +0200 Message-Id: <20190402161256.11044-5-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190402161256.11044-1-daniel.lezcano@linaro.org> References: <20190402161256.11044-1-daniel.lezcano@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The dependency on the THERMAL option to be set is already there implicitly by the "if THERMAL" conditionnal option. The sub Kconfigs do not have to check against the THERMAL option as they are called from a Kconfig block which is enabled by the conditionnal option. Remove the useless "depends on THERMAL" in the Kconfigs. Signed-off-by: Daniel Lezcano Reviewed-by: Amit Kucheria --- drivers/thermal/Kconfig | 2 -- drivers/thermal/intel/Kconfig | 1 - drivers/thermal/qcom/Kconfig | 1 - 3 files changed, 4 deletions(-) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index ccf5b9408d7a..d8aa7fac8c56 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -24,7 +24,6 @@ config THERMAL_STATISTICS config THERMAL_EMERGENCY_POWEROFF_DELAY_MS int "Emergency poweroff delay in milli-seconds" - depends on THERMAL default 0 help Thermal subsystem will issue a graceful shutdown when @@ -152,7 +151,6 @@ config CPU_THERMAL bool "generic cpu cooling support" depends on CPU_FREQ depends on THERMAL_OF - depends on THERMAL=y help This implements the generic cpu cooling mechanism through frequency reduction. An ACPI version of this already exists diff --git a/drivers/thermal/intel/Kconfig b/drivers/thermal/intel/Kconfig index 2e013eeb4a1d..2c727a820759 100644 --- a/drivers/thermal/intel/Kconfig +++ b/drivers/thermal/intel/Kconfig @@ -1,6 +1,5 @@ config INTEL_POWERCLAMP tristate "Intel PowerClamp idle injection driver" - depends on THERMAL depends on X86 depends on CPU_SUP_INTEL help diff --git a/drivers/thermal/qcom/Kconfig b/drivers/thermal/qcom/Kconfig index cdb455ffd575..3ce20fec86a2 100644 --- a/drivers/thermal/qcom/Kconfig +++ b/drivers/thermal/qcom/Kconfig @@ -1,6 +1,5 @@ config QCOM_TSENS tristate "Qualcomm TSENS Temperature Alarm" - depends on THERMAL depends on QCOM_QFPROM depends on ARCH_QCOM || COMPILE_TEST help