Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1632651yba; Tue, 2 Apr 2019 12:38:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3hNglDZcS5zb6QfQrO9lIw74DoR6kmnkYt72Pdi+3RAFQyK9HDLk9DMs/qn7+xudZ4zkd X-Received: by 2002:a63:e402:: with SMTP id a2mr60050514pgi.268.1554233922495; Tue, 02 Apr 2019 12:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554233922; cv=none; d=google.com; s=arc-20160816; b=pkMlHxltnAC0BlxvWAcv1FlABeqpyQR3iNcO38BUMCzlJFFPZ5zCTWfuBMVMFiYA1x Lo/DavtIRHh7eIV7wZam1rfBhIUWMGLhiO25BLmeS9NnGplUzeNL3SXRULl/g/ZO9kN+ mKVNqxIU9zPP+wEXmXoWa2gqPTHu5KUPoduVtYTJQyd3lLGEfBlSI/NsSg7hVcMOTlfh RJM1TuPH5wZ1aSeS54QU7aAOwb11S40eFoy1VmfH89VTmJnLLpA35cRAVZ5V3i7ubIIx sI+qpqhazb0GbxELOQJBZAuAyahBDMQ7w9VWPOaq6jp0sqa9QvedtFYRJh7BMqdEiPlw vbGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ccqQVWs9UmM1DuuncUdXIZRnO3KXuTehxFueK3afzzM=; b=jrtox8ImmVwYGTvz9D5IaVhiRoeP7K4hKcv4orkuZk5cR5UMlaA01DnAfx2J1eOx18 gvMkKH6zvjr4jkf0r+G0ueETwNaZXNxK2+TIhEDd8LvJH+dBM4/JrFMCGXtK5toi9sXn 0LdRjEyMDsjM2msfLVg7figM8c5WjNX3eTWSKjOofE1LMhMvbxAGwHCiOnLrzpD244wQ 9o5eYs0DazgR3I4vcS5teKgnwCb+0StrLm6jjSCLiygASjW9hMMLgqYxxVr/lm1cwqs1 xlS2VwwDFKdMfAN5PvNK5Jb1gpkKQgL5MlwobgiEEuGhe2TOVSrOizpjEWJ1Iy/dFP3i XRVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dle22erI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 g8si11705192pgq.159.2019.04.02.12.38.26; Tue, 02 Apr 2019 12:38:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=dle22erI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729414AbfDBSwJ (ORCPT + 99 others); Tue, 2 Apr 2019 14:52:09 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:39716 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729357AbfDBSwJ (ORCPT ); Tue, 2 Apr 2019 14:52:09 -0400 Received: by mail-vs1-f68.google.com with SMTP id g127so8436351vsd.6 for ; Tue, 02 Apr 2019 11:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ccqQVWs9UmM1DuuncUdXIZRnO3KXuTehxFueK3afzzM=; b=dle22erIUt0oCm1Y1eogd9pIoKhA/1JFjchAiekYcJtrfN/TfSHOLI+cSwHohp6DWn 3GE5Ax+dczeX+soUJOjcR4alqK9S5G2DcmrCYMsOtGCDq+Lq6YID7onN/oCfMSBMb1wd a1Onr1p1n3YtxGaYaTZNy2ZoTvCziNjgcxWnV1EIFBkX+4FCxHiB22+kfwNhG6rP2tLA recXIjtEhhagsjSACyYytWLNqFN6Y5kQszVbWn/fMA0JAmHNkMgcVCkUWKXDAqLUqxIW BMODazs4mC65bEiwiED2MpihoGj0MUVCN0ukxCuGH9g7rL2FGuXwMXk+esDDn+q/nmpk eyPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ccqQVWs9UmM1DuuncUdXIZRnO3KXuTehxFueK3afzzM=; b=nNSK2nHm6fbawVi95fqvueSKSFviiEhZjmmGYRk7pCmrYdkf+6jcM61rrUyGBWcsgu KUkvQCRFzRvxjg7TqyvNhfxGq5MwQYsUHIE0KWiBWTrVwuAh4A5MpQfnmLfDnUHCRHka ktQVkmtYKlo9W/MU5giLMEVvgNAvIYwF81NRgXSJkXLEl6DoVScsX47yRhWjRDHF+U66 FnOEtAbCh0EgrPVCFMt5jwwHu0Wf8kj3/u8DO6CxqwWNmIVFc11CiLj16dHUNtEG8AXZ XV3YfV8hsGHGvpmkQSgmWSEZsNAe8jL4P3iXmL4/qt2s7ori7WcENyqTna18TVycpfJr Vf6A== X-Gm-Message-State: APjAAAUVhe8VqlPbIMIgp5OYtyZWs7xTEziGMo0J59D72SbJhA205bMW OrrgtG3xBMvf5098SsCyXeRImfy8/2GtvnE3hoppYQ== X-Received: by 2002:a67:f693:: with SMTP id n19mr6203815vso.89.1554231127921; Tue, 02 Apr 2019 11:52:07 -0700 (PDT) MIME-Version: 1.0 References: <20190402161256.11044-1-daniel.lezcano@linaro.org> <20190402161256.11044-5-daniel.lezcano@linaro.org> In-Reply-To: <20190402161256.11044-5-daniel.lezcano@linaro.org> From: Amit Kucheria Date: Wed, 3 Apr 2019 01:51:55 +0700 Message-ID: Subject: Re: [PATCH 5/7] thermal/drivers/core: Remove depends on THERMAL in Kconfig To: Daniel Lezcano Cc: Zhang Rui , Eduardo Valentin , Linux PM list , LKML , Andy Gross , David Brown , Stephen Rothwell , "open list:ARM/QUALCOMM SUPPORT" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 2, 2019 at 11:14 PM Daniel Lezcano wrote: > > 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(-) > > 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 This will break the intention of afa1f2ab43d48d0e1. At the moment, we need THERMAL=y if we want cpu_cooling. > 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 > -- > 2.17.1 >