Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1906499ybb; Thu, 2 Apr 2020 09:27:59 -0700 (PDT) X-Google-Smtp-Source: APiQypI9wAHkSQl/ttmtXHVaC6JO0WFhIIUbPpcJikl7QV2AwK/jl6JvhHqLHYfgCNTrx/pyVxfi X-Received: by 2002:a05:6830:1e79:: with SMTP id m25mr3010166otr.36.1585844878857; Thu, 02 Apr 2020 09:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585844878; cv=none; d=google.com; s=arc-20160816; b=xC5WijEzdjwuvz1Hmnsi8D/q/bGMhBOn+Lr7fU8qwCaOrU4P4rU+CrfVIDsIhABqzB GjQz2hiZJRvW70v8o2JlHQbWHvNV2mVB8VXOve7DNzWSjtc8qzyIo/x6Mux2c9Mh9A2z +aCR93qIJBqUUOCA57ka1vU9O4cxWJMKm5Ao0PfjJ8Eo8KdDJW2Il0qOwl3whpkFmAIp iyXZsHZLBozI1KUr4QlANJBzs6g/rKbqlKzqwSV8bmaSk+RzPZgVOa8xzt9L9tlpZ3rr jj4VvG6+O3SdhvgvCR5fQe8xQAkwNKSAFbIJA3JSZj4Nc+LIMYh+XGe8YssHuflJX2/7 Sc6Q== 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=NLgc/Vk2F+SuJNrnjX/emMROOJG4WMJyyJx9N+UIrh4=; b=Wb97WxCffXDZzf3T13zW/x7nQjfpFc2EiaGcHGE1/qaM7vq5nZBhdLBSLgHneZC5LL exc84bNZLYNH61b98LjV9y6w9S7MrgE+z+0RFVjENfjMQ4Dipr0eI9Mxmu6a+O11T1pe iGr6umHpKQwogngU3tQvhB2ava6Bw+hNoUAOlOE9RK5GRuWLiUFm9A4oC0tWxTO5u1dW G0NYKM7vqKzi6irafQsnyB8oIeQwLOQprnvtUQ1GjKdlnP5JqU57vTEDwd9IjOzBjAFo RfGBCg9lZXNXOOh8Cy7FgSbuBKen1sWmSJ7mzRGAwXowem53mUdnd6MABcZDQ/E38H2U LCdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GxstHCjI; 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 i16si2492829otk.112.2020.04.02.09.27.44; Thu, 02 Apr 2020 09:27:58 -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=GxstHCjI; 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 S1732484AbgDBO2G (ORCPT + 99 others); Thu, 2 Apr 2020 10:28:06 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43882 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732371AbgDBO2F (ORCPT ); Thu, 2 Apr 2020 10:28:05 -0400 Received: by mail-wr1-f65.google.com with SMTP id 91so2515667wri.10 for ; Thu, 02 Apr 2020 07:28:03 -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=NLgc/Vk2F+SuJNrnjX/emMROOJG4WMJyyJx9N+UIrh4=; b=GxstHCjIcfORLMIREXB1QHdgE3pGnEEDm4SN6Zi8TGTVrQ5CYV/5BkwWKgiYvoAU8w oPkzh+OZt30LJizbeh1vI6cCf1I5mvjwyVIDr2N1BVpnOFOzpHUynqTrHNvge3trdt8s z+DrEt8f9zRs1wAUruYW91YM0tPhnlvrjuboMvmacQlYLa/a3dLsW8vFykPkmsm3UwfI SGb4Xjviydgq9PxNH54skVVxPL+mRS/d/V8JvkHcg80c/IvXF5RasnfNeO+aQtxbP48n RKDLMAc+IYNII0UuAtkrPLH0Eh7linMx0P+ErJViaEaTzwdgeHH9yDe+1Mm3xRvwzRyg uWUA== 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=NLgc/Vk2F+SuJNrnjX/emMROOJG4WMJyyJx9N+UIrh4=; b=Wd020Iix69z64Wt7jSMPaPJHWeKtGCqgPDpQ5iLJ7SU682Z1YWSALGeZ03joC+CFPx VPe7qo5eDNTpmRXPj3yjT+9jxNIrmNtnNTNJuGzz8SQ0CKFtVcZ9HS8JQNmWSDlrVMso iqep+xYb607F6+TgTUVz5rnzRqo3SqnLmGA5aOd4dbCUJa/7k9635n9qva5S6d3eW1YO 33vOePeEzejrCYLXCNs1b/gPpcj0M/7+rNM3Ftj3R72Ah9lQ0UgPxeIJ0RC+XFY8Rz1h fQuRtb/QPXE0u8skXmyp2/NgNG2VHR8NU6cpX6fmoGGFN7IWRXfKjucvUog+C7UQx1+w cymQ== X-Gm-Message-State: AGi0PuaD9ic5amxrLACfadETf6398VwtET4RgXg5Eunkm/gKKj4GirHV 6GU5ADFFoV3n4FnhWBqIPLai1A== X-Received: by 2002:adf:a21a:: with SMTP id p26mr3843764wra.102.1585837682934; Thu, 02 Apr 2020 07:28:02 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:4b2:e366:e86f:261a]) by smtp.gmail.com with ESMTPSA id a7sm7045186wmm.34.2020.04.02.07.28.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 07:28:02 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rui.zhang@intel.com Cc: amit.kucheria@verdurent.com, linux-pm@vger.kernel.org (open list:THERMAL), linux-kernel@vger.kernel.org (open list) Subject: [PATCH V2 2/9] thermal: Move struct thermal_attr to the private header Date: Thu, 2 Apr 2020 16:27:40 +0200 Message-Id: <20200402142747.8307-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200402142747.8307-1-daniel.lezcano@linaro.org> References: <20200402142747.8307-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The structure belongs to the thermal core internals but it is exported in the include/linux/thermal.h For better self-encapsulation and less impact for the compilation if a change is made on it. Move the structure in the thermal core internal header file. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.h | 5 +++++ include/linux/thermal.h | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 828305508556..5d08ad60d9df 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -41,6 +41,11 @@ extern struct thermal_governor *__governor_thermal_table_end[]; __governor < __governor_thermal_table_end; \ __governor++) +struct thermal_attr { + struct device_attribute attr; + char name[THERMAL_NAME_LENGTH]; +}; + /* * This structure is used to describe the behavior of * a certain cooling device on a certain trip point diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 71cff87dcb46..5aa80fb2fb61 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -35,6 +35,7 @@ struct thermal_zone_device; struct thermal_cooling_device; struct thermal_instance; +struct thermal_attr; enum thermal_device_mode { THERMAL_DEVICE_DISABLED = 0, @@ -119,11 +120,6 @@ struct thermal_cooling_device { struct list_head node; }; -struct thermal_attr { - struct device_attribute attr; - char name[THERMAL_NAME_LENGTH]; -}; - /** * struct thermal_zone_device - structure for a thermal zone * @id: unique id number for each thermal zone -- 2.17.1