Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp619869ybx; Wed, 30 Oct 2019 02:14:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4BtsH5YuG+tcweDvg/RvHlSJ/vFVAtMLZ7F19UktrG+oiG9o/AIRWPqGsU2Arbbi5ImDv X-Received: by 2002:aa7:cd71:: with SMTP id ca17mr30357379edb.1.1572426896039; Wed, 30 Oct 2019 02:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572426896; cv=none; d=google.com; s=arc-20160816; b=NSkZuUoRLzUh24Q+HnOy9RnMpb76UWqymHmJuHJnhbVhEYl9bzxxGtAJwivZ7zaGGh OSUiIjqv/IQJBQ+sEVG8Qe1xvp0hgSnzTeBIDASqNyEgNHA5ERlcmbQd6BpCoXddfgsG 5JP9ZixKapA2DZWpTNkSxrek21BDm2k9TmYHo3KmybsDtkbT/iX6Wm3pXjXMV1uPp8mi uL1udkdkE7paoJLj714zYbD6tCfmUqt4dy4rsiNk/NMDPMR4ad/IhC2ehh5ORZPv6/3M pgceQbONSLJ+jmz6nvh3Ic2fPM/7o/+sJzeYI0LBvqzNZBYQPwRe0m10GMNUbedC3aPn kA/w== 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 r14si828788eju.413.2019.10.30.02.14.32; Wed, 30 Oct 2019 02:14:56 -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 S1726594AbfJ3JLb (ORCPT + 99 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(-) 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) { -- 2.17.1