From patchwork Wed Oct 30 09:10:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 178086 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp989560ill; Wed, 30 Oct 2019 02:11:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYzP2DQzVEj2eQTn4DvGXI77oMwm2ZDgB8QocrEpEsoWqsrDrxobUpx8CsG7UfG5df+7bp X-Received: by 2002:a17:906:2a89:: with SMTP id l9mr7817907eje.329.1572426693662; Wed, 30 Oct 2019 02:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572426693; cv=none; d=google.com; s=arc-20160816; b=ILjzeUCSClX3gV6Ga7I17WVCHECBEbQ/J7SZ7JPKCKqy6dz/v0m2hsNOMmkfKN1L90 5W7vh6wVX7YN1tXQWdM1yQf4ETyjLkVvZ4I4H5BREQcRpX6jW2oG6Dh4CL262Y1lK//L mNbnPr/47x0Vzh1nEVs5C5kLYZERTG+hh4izU00a+1LAl0PMFVY1X5EWZPpr7002TzEP 0PiHugiZwpHokixM4kfmlFubRa8s3c3TZs5qoTUBo0ZWUGxFEKHKw6hrXTlp7myEGUuZ G6VwQwjFsjyvup5ty3+KOmWbsbSaAc4EbdFv1QJ2e+KJwTTdvVHeRbnxIw3Cmz7SWTk6 1mBw== 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=0cMzmwOQ45CvCpy5BV9I0axI+oTcT02C42maobILAtA=; b=s9XdszhNCnfB4f9tDZJwzME45jmpsteee0VKzqoc7Xu3Kmp0TEl+mLxTkVDMkheUtT AMvujQjJ13jloGUR+duVLncXcUfBxRlE5tvxM4qLPFyUM0hmjH8zBQrocJJ7yGG/Dk3P 2OtFVEeyOuc/CLFGX9T5DfcTuxw+dVBTZPC+wQE4g07uJwkdueSuLwUcbFI2vtGxWusl JSHBQnRPUj/bIw/A4SFMKut+ZypAbQ9aTqBGWW2MctsaOnhlRtz4J0+Mmg+pKODO+Z80 4GX5qapQA/pGfER1yQt+PAbVFJ1CML/ji08I5uTeAxXSt9AoGheYZNhaRLfGSwGwiX/X vmlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jcy8Fggj; 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 n12si839611ejy.337.2019.10.30.02.11.33; Wed, 30 Oct 2019 02:11:33 -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=Jcy8Fggj; 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 S1726619AbfJ3JLb (ORCPT + 26 others); Wed, 30 Oct 2019 05:11:31 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44305 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfJ3JL3 (ORCPT ); Wed, 30 Oct 2019 05:11:29 -0400 Received: by mail-wr1-f68.google.com with SMTP id z11so1354321wro.11 for ; Wed, 30 Oct 2019 02:11:29 -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=0cMzmwOQ45CvCpy5BV9I0axI+oTcT02C42maobILAtA=; b=Jcy8FggjKwJb4bd9H4Q6f/qntfaIsKoRcwzdf8bVSIBZsq/wZACAWyQxjs8qrpoM48 0ojV8Qx7fKxGvn1Ln8S3TyUUB2yHjlEIbRFbrWIPy6gqUg+cq1BwbLCUPD3//EwoprbA AgGv2ykIUrdJ0p3sJsRBFDWKLmEm2e1yZMwHwVPUUzdzXR2f/e46jXEky77tjWm7SmOm +pCMyc8RIFnudmO8HCTTXlsoQpgvD5OSf6MlAZxumT0m8PyR0xwCe5aXgbKqRzprLcKq ZsblpQ+IM82gyL4ansMguDQ6BFePNWjNBI5BYGWQwFY56600Vfb/MQRl+GTWWYPd7eK+ YETg== 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=0cMzmwOQ45CvCpy5BV9I0axI+oTcT02C42maobILAtA=; b=Xs6VRZXpquPx+af8d2wYOJMm6j6SWrUHUbAPW/1wLTCeiQYh9uIKxDYedaYMsMKcnZ gtIbciLkm5fMQnOuoeM5NpgRD7xlII0drGJ1wZ507XVxJYTeNbRtc47QdYPH/2Tq4h6y avpSNlxBxZ1IV5DDh/JE8qHVj2OjOJ2jMYD5pZm93uDunxOSLNRH5QNlT9e8pLx//djs FQxXduMAmEHzXKcB5xMn8Sy7+w379R2tP0hu+d8v/LUrRo324L6H01WdOLG6arm29kMj FLC/Go7ip6qjFmnz/TBv/9eXcyQX0L102dxvhaR7NGCHbJ739Aq+KBVC/DMlOafLPZrz c37Q== X-Gm-Message-State: APjAAAU9A+pc+KEmW4ZlF2Mn3QtPmVLwxT0WF9NkK2Hd2DxmwC8uIXQe u132He7bn7sElovSeY6gLb4bRA== X-Received: by 2002:a5d:66c6:: with SMTP id k6mr23308468wrw.152.1572426688132; Wed, 30 Oct 2019 02:11:28 -0700 (PDT) Received: from localhost.localdomain ([2a01:e34:ed2f:f020:2c7f:2fc:5551:ee55]) by smtp.gmail.com with ESMTPSA id t24sm2608394wra.55.2019.10.30.02.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 02:11:27 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: Amit Daniel Kachhap , Viresh Kumar , Javi Merino , Zhang Rui , Eduardo Valentin , Amit Kucheria , linux-pm@vger.kernel.org (open list:THERMAL/CPU_COOLING), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] thermal: cpu_cooling: Reorder the header file Date: Wed, 30 Oct 2019 10:10:37 +0100 Message-Id: <20191030091038.678-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191030091038.678-1-daniel.lezcano@linaro.org> References: <20191030091038.678-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the conditions are simplified and unified, it is useless to have different blocks of definitions under the same compiler condition, let's merge the blocks. There is no functional change. Signed-off-by: Daniel Lezcano --- include/linux/cpu_cooling.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) -- 2.17.1 Acked-by: Viresh Kumar diff --git a/include/linux/cpu_cooling.h b/include/linux/cpu_cooling.h index 72d1c9c5e538..b74732535e4b 100644 --- a/include/linux/cpu_cooling.h +++ b/include/linux/cpu_cooling.h @@ -33,6 +33,13 @@ cpufreq_cooling_register(struct cpufreq_policy *policy); */ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev); +/** + * of_cpufreq_cooling_register - create cpufreq cooling device based on DT. + * @policy: cpufreq policy. + */ +struct thermal_cooling_device * +of_cpufreq_cooling_register(struct cpufreq_policy *policy); + #else /* !CONFIG_CPU_THERMAL */ static inline struct thermal_cooling_device * cpufreq_cooling_register(struct cpufreq_policy *policy) @@ -45,16 +52,7 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) { return; } -#endif /* CONFIG_CPU_THERMAL */ -#ifdef CONFIG_CPU_THERMAL -/** - * of_cpufreq_cooling_register - create cpufreq cooling device based on DT. - * @policy: cpufreq policy. - */ -struct thermal_cooling_device * -of_cpufreq_cooling_register(struct cpufreq_policy *policy); -#else static inline struct thermal_cooling_device * of_cpufreq_cooling_register(struct cpufreq_policy *policy) {