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: 161635 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1932231jan; Tue, 2 Apr 2019 09:14:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjdV2IMBNx0gjryZ+UT/690MlJhVDM49bZREHtg09BUgR0Ff0PWtA/g1xiNuXk6fUFt3xc X-Received: by 2002:a63:6a42:: with SMTP id f63mr41088285pgc.207.1554221641637; Tue, 02 Apr 2019 09:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554221641; cv=none; d=google.com; s=arc-20160816; b=yVHQ3nOZGLIVb8cgCNjax1SZRinPVh9pXfzSqKfc2k67kd+MaiBpSR2xRVVjYxg1m9 JFvR4hHJp9L9MRNM+IolkYJ/gr7ansyoFtl8G1r7PRaHFyhmMg+x/L/bxQJbgrKx4tC0 D3X5a2JX9c8m+lwWoP/LWE7rCvoSYf13Xax+qUqNAPAvaqIvsLfYKjTKyq2HWf6z5Fvn q+rcpF7AlX308Xbsu6nrnF04gCVDYyNeov27qFIhvTgVxQDSTtEOiSV8e32O5mSKDIMW UFmAi3LKAuBWFm/3DFW4GOISHXR30LeRwumi0gfJpXRG3CV0omFlUWyKS0ia1IocxGyL tJ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=EpsrhrXs+dD79SXvH2cccWShrAxB04KkiEvgDMTNnaM=; b=sRQxroPzZKgPoPd3zIUYKuJhh0+DS6IEkwD9KHjPgA/k73Wopjg1OpAK5V4uZJHx0x IUp+B6U+WfHSdHmuKAGbFnHkq4aMKm9YwmiDNwH8YbYQK67UCxfLbiO1b3K8fG4j92Sp xkRwOwwBN0O7q5v0mlDlVrjT+SnID6A+NeL9QGAI7wiRLJUyLqO2Y605ZHllDMgp69H6 J3aKvqJe2lYBhQNIpSpcwU1Qa/s84hTSFXbqJ64BWWyazpXIC0qDIl1DgRXU4vVWJ1UA 1kfFV1b9j64EQ3ceV7Ag/VzAkrpj4LUXwXCpC6XiASuS8Y+qew/h0oKagyB/mQFr/ek/ /EwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YbW8teMW; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e36si11350805pgm.89.2019.04.02.09.14.01; Tue, 02 Apr 2019 09:14:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YbW8teMW; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729836AbfDBQOA (ORCPT + 11 others); Tue, 2 Apr 2019 12:14:00 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39878 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729038AbfDBQOA (ORCPT ); Tue, 2 Apr 2019 12:14:00 -0400 Received: by mail-wr1-f67.google.com with SMTP id j9so17420084wrn.6 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=irE8WYbKpeqamP9Yp1GBrWdbKgYUclB5BdOaYWabiYiRiHN1LTAG9XQ+r7hNOEk1ea S6feWmMw3qc/oXUSaGZgMyNLGjJNueqqfPrqr6NB6Jl321tX288OnYuelwZlxfAlDHiA RNC6gCdHlnMmE1crYDJsg7AyJboXfauHBavmE4lcC/Hp4MMRxImaaveLwzSqwsgFJ69W h4W+KnlrRn+j7BzeMLjHY+hBnU52s6ct1DAOt0ZD8qB+tr8NZluuAAFNXOTGV/3+1U3g I6XL5IzkWkVL0mzU5LR7jJTdA5nqVwi5ZK9liSJJ/mM7XWWwSfhFr9WoC/k9MG8gVAx5 pVyw== X-Gm-Message-State: APjAAAUD4DVuDd5NOfOxCodHCbJ4hL2Po5YAcJVIEbgh9RlHuZ0p84Id RQeK1IRA1+tNqMKlww+s+bFVzA== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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 --- drivers/thermal/Kconfig | 2 -- drivers/thermal/intel/Kconfig | 1 - drivers/thermal/qcom/Kconfig | 1 - 3 files changed, 4 deletions(-) -- 2.17.1 Reviewed-by: Amit Kucheria 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