Message ID | 20230221180710.2781027-12-daniel.lezcano@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp151968wrd; Tue, 21 Feb 2023 10:11:05 -0800 (PST) X-Google-Smtp-Source: AK7set98KpqJtKXC+KS2aDpjes/fPSuNMEjuaE+qzquvLCOsaKgGXFn/7JFCoQXbEvfng+1nKTZi X-Received: by 2002:a17:90b:3808:b0:22b:b375:ec3f with SMTP id mq8-20020a17090b380800b0022bb375ec3fmr7476636pjb.21.1677003065559; Tue, 21 Feb 2023 10:11:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677003065; cv=none; d=google.com; s=arc-20160816; b=OaC8kKyOU4DVnRB+mSqjCbeTjQXL4PGUUsdkBLy/Q91iIZzrSAuQIyZTWGnGAy7lea gWcG4TDeg5lAwTWOLFRCIWgC+KZ0Uv5mNTZyTtNFxHCrWdFfXSeTAEyjHeE84n+kw/TT iHmEJIq6KdrPtOeyu67OCgipeLVmX3eoSE7x1cyLfO/abcntwr0gMtHNu8MBVEJnTfBD c8OE07IgF4cgX0nnY8A7wYz7RzSjANwB5IWQkGssKBqQ/s95H4EimoHlygtPzpX9UgTS ZZHNXAwczwoUaOEe7qD3z31/+zyMFhx42Ocyqdy/CxnorTz3D40GFmwjZAu+r5eRVlSP 4lAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xj/XCNr0kaZT/9prwrgZXIPale3VaDSnJ0X65XmdswI=; b=IxKGtHkCZ7rqoQeSafKZTrWOIsHFysMb6HVrYs7nTp9mGfLY5rmJORzbrElQ5aUDnp wkVtsuJsveVLxMqO3LT3rC0WHQM+Mfnzh3KfGEFK3sAMj2YYecmVweCTG9j5ed1Jf9mG vjfrs4G7lLXJmErIi/z07wrHXtzUysIWIW2G70mDwr4oQs+7SQRhfBkyqvwNM14Q3cO9 LyWzmij5aOlx3lJlpSSngceh9SPRwIPwZMp95uaSnp4qvTS0UhIA3hSlxcYZXUT8vJ9o m09w2+kBFMYuoa0TS+MYz3LW883p4XoenPXuSybTzuAATe1C5/JrQz9fNW6+A/cRcZVP 8DfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XwmPT1cE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cx24-20020a17090afd9800b00233ce6db1dasi5190888pjb.85.2023.02.21.10.10.53; Tue, 21 Feb 2023 10:11:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XwmPT1cE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232319AbjBUSJm (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Tue, 21 Feb 2023 13:09:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbjBUSI4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Feb 2023 13:08:56 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1890D2E81A for <linux-kernel@vger.kernel.org>; Tue, 21 Feb 2023 10:08:08 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so1877208wmi.3 for <linux-kernel@vger.kernel.org>; Tue, 21 Feb 2023 10:08:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xj/XCNr0kaZT/9prwrgZXIPale3VaDSnJ0X65XmdswI=; b=XwmPT1cE2nvf4O6nZ7Jcn9NWxEhhKq8cES62hT/lwPGstslb7e+KXTwdtqLIpS/oC9 85BpYqEiZBeZHZcLH3oDkBHB77rm1rcgoF8CPMGd1vqjzf2HmY0WbRObqvA1GKetsFX7 izGoLCvgO6LkZOue/YiPaKJFl4kXbNjk1b/MUA4aNu7wSa2Xafu+eZ8lMIFPiGal752x dRrg5LduwxleF3zrr3rduwHRbuPJUM1WBmo29emhxCpGPaGqmBKQ8KD3cpePQh1rEpWO X6uA95V4i+ZcxitasUAd0mJyjKOHgGqmTvQIkOEmcuUY1uD7XVlA8LuRnXTbtecaWvUx dsMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xj/XCNr0kaZT/9prwrgZXIPale3VaDSnJ0X65XmdswI=; b=XuxWK0y2eYDuNo83e0VnekyxBQqBytSaCI6CIW54sC8WfxQtsAQJ0fW4VmBxtTkQ+c O9+UMDyuOlVNpChTwIwK7DkrZAb4TlVkUwx2XrGfiQAhO0yrI9RJ7cidGx9/QdPYXPTN MehUr1NJOtd6O0G8Mh3vlm183crqQJvPt2ZN4KSNqUNfatPh1k9wH/7hTV8MmWbS6k1i zq3W9Fcw0AHWZ2VuGQIcM1JlS9+chlMbipKuLHIN1b/e74FlqUeC9MkDeHw0o9wb3qmU zKDlzwSqzQ8HLlV9dx24KYIzYmHKay6JjbG+h1YdTTvBkyOyTfZpYFhuV4Kou6aLsICI HUyA== X-Gm-Message-State: AO0yUKW9VhX0mvuQ0cw/gULQL/DOaw+pzoTOK366Ehux7HprnN4BwOQh krQjxDdLgAoFXQ0aj1xkkVMX6g== X-Received: by 2002:a05:600c:1652:b0:3e1:12d1:fde0 with SMTP id o18-20020a05600c165200b003e112d1fde0mr4218250wmn.6.1677002885486; Tue, 21 Feb 2023 10:08:05 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:1e9:315c:bb40:e382]) by smtp.gmail.com with ESMTPSA id c128-20020a1c3586000000b003e21558ee9dsm5107815wma.2.2023.02.21.10.08.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 10:08:05 -0800 (PST) From: Daniel Lezcano <daniel.lezcano@linaro.org> To: rafael@kernel.org, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com> Subject: [PATCH v2 11/16] thermal/hwmon: Use the thermal_core.h header Date: Tue, 21 Feb 2023 19:07:05 +0100 Message-Id: <20230221180710.2781027-12-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230221180710.2781027-1-daniel.lezcano@linaro.org> References: <20230221180710.2781027-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758465166289353104?= X-GMAIL-MSGID: =?utf-8?q?1758465166289353104?= |
Series |
Self-encapsulate the thermal zone device structure
|
|
Commit Message
Daniel Lezcano
Feb. 21, 2023, 6:07 p.m. UTC
The thermal_hwmon is playing with the thermal core code
internals. Changing the code would be too invasive for now.
We can consider the thermal_hwmon.c is part of the thermal core code
as it provides a glue to tie the hwmon and the thermal zones.
Let's include the thermal_core.h header.
No functional change intended.
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/thermal/thermal_hwmon.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Tue, Feb 21, 2023 at 07:07:05PM +0100, Daniel Lezcano wrote: > The thermal_hwmon is playing with the thermal core code > internals. Changing the code would be too invasive for now. > > We can consider the thermal_hwmon.c is part of the thermal core code > as it provides a glue to tie the hwmon and the thermal zones. > > Let's include the thermal_core.h header. > > No functional change intended. > > Cc: Jean Delvare <jdelvare@suse.com> > Cc: Guenter Roeck <linux@roeck-us.net> > Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Guenter Roeck <linux@roeck-us.net> > --- > drivers/thermal/thermal_hwmon.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c > index bc02095b314c..c59db17dddd6 100644 > --- a/drivers/thermal/thermal_hwmon.c > +++ b/drivers/thermal/thermal_hwmon.c > @@ -17,6 +17,7 @@ > #include <linux/thermal.h> > > #include "thermal_hwmon.h" > +#include "thermal_core.h" > > /* hwmon sys I/F */ > /* thermal zone devices with the same type share one hwmon device */ > -- > 2.34.1 >
diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c index bc02095b314c..c59db17dddd6 100644 --- a/drivers/thermal/thermal_hwmon.c +++ b/drivers/thermal/thermal_hwmon.c @@ -17,6 +17,7 @@ #include <linux/thermal.h> #include "thermal_hwmon.h" +#include "thermal_core.h" /* hwmon sys I/F */ /* thermal zone devices with the same type share one hwmon device */