Message ID | 20230226225406.979703-16-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 v21csp2131435wrd; Sun, 26 Feb 2023 14:57:18 -0800 (PST) X-Google-Smtp-Source: AK7set+VwsMximLCr2CbQ7z5+7YktA7fw6+GxFKfcIsyGR3AJdRA5Q0mCHURKaowIbfpXBRinikL X-Received: by 2002:a17:90b:948:b0:236:7f67:8338 with SMTP id dw8-20020a17090b094800b002367f678338mr20098774pjb.4.1677452238132; Sun, 26 Feb 2023 14:57:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677452238; cv=none; d=google.com; s=arc-20160816; b=wKHG6DQcqZDzX3x7By/fMKs+HcMVN614BAE9Z9zNt3cXZLE10Km4tWtJx0PYWCiQ/s QfoZUPXOzKEhisLVKKvzeGwPrgV0c/g1f+/1G5xacxtq7t/XqvXVClfii9eahes3OvkP lpZbM6qJ1hif0gwEEYabbdA8SPnC3b8GB37o1CLxFjoIAZL/oT7SqYIgGuMsUKXd7bBy +0oqIi3BT4c8jT2E3MGWyxZL3HMtCIuxMRvfr0XmdsfXRScu6YJI2f6dK1Cgk9CHIIkN e/ZqexNmGo1qMKBkYfKSfnxtEvtVXVsCbRWo3egvYrXWPi400e74mB908zUdjhPllrXI UfTw== 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=5G2AExiy4m1JD3VdlFvbqMiJd37t4DGUXITJCS9H4qI=; b=zuKZNNh0RwW8kdR+Br7TFQyJjJUnw2vZahyz7jQ+6y2HnvlORnkqN+ILxtd/2uF/tv StmuGJYWwUWtqrqIhHxTIESuPctTsC86K+diPC36AdX+bBMGlvL0wGrGBH+zRjt0B0+e jhjXlCTTrSWmXZABcyuL2PuDb7puTP9YGaVKSqneGIvm+zuWsGX+RNS52kLtLLNDQmN3 KXf8oUkG0a2eaAZN4PswCn49TGIjvr9oScIU1dlzIfQcN4azXMd9zDp7iekbhS3fcfAu 45DUy04F8ORE02q/zB5hZMxNZvb+hGW/iJaIebw8gf4h+a2RN5sUCmnBTXMTdv9Oq70Y Bz9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pxoj8LH7; 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 a7-20020a17090a854700b0023750b6960csi5338678pjw.156.2023.02.26.14.57.05; Sun, 26 Feb 2023 14:57:18 -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=pxoj8LH7; 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 S229965AbjBZW4e (ORCPT <rfc822;tertiaryakionsight@gmail.com> + 99 others); Sun, 26 Feb 2023 17:56:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbjBZWzx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 26 Feb 2023 17:55:53 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06C33193C8 for <linux-kernel@vger.kernel.org>; Sun, 26 Feb 2023 14:55:30 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id bx12so1260100wrb.11 for <linux-kernel@vger.kernel.org>; Sun, 26 Feb 2023 14:55:29 -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=5G2AExiy4m1JD3VdlFvbqMiJd37t4DGUXITJCS9H4qI=; b=pxoj8LH76UCWOvpu+joi5qun8KjfDjYuYrKonUey/icQQfWFMlmNYyAej8zms6M7uk mv9HJqzgF+YBGkOjVLtdnOwYjzuYd4v6bUeha/htprPlI71Jdbe8zqqnpfkN/VpIxten JM+MXaFB5/z3Wf1cnGWro0y5lk85K4UCaG5hHOZRErsHoy2XrxMxwVybgLWfNKTyOBiP 2/d8s3Mqip6n5twohuw+QLZXQTP9T9IMFx1/I0AFj5XftbLSBCQBG8Ppv/9z96rddmqy Fuc5AQZ/YV/IH72ik+OWUERExy1ltUny6YLOLs//Pd/L/bygRji72EaIyrHpcgE5k6qf wJSA== 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=5G2AExiy4m1JD3VdlFvbqMiJd37t4DGUXITJCS9H4qI=; b=2KawCv/XAf7M7YckN8+SPOERH37Jj4K5jm8DkqnLEPiaHxxW5dqxCO3a0M/klb0YoD tquNUXpjkyWKl1+t+JPevo3OYVOXLEW99itArQgXe0z7hlNEPvx1n+EB4lgg0qhk7Hye v2qrCeuOhBqhuh8xAHh0kvXB5VPTjMbvc1tmiJ/tTUpokNgkw0JpFuLd85MFKPZtuH8L CfOTgHjXjfZdmu0axXVcOvQqwR6fzLN6kHr6PrUMROBazSuZAbhqKOOkG28kxNdzUiW2 oF1oG8iYFZvZF1ddorYtvtbUBDICm0zKZycj6WCGI0ZjaYd58pDTjWQIDT972fvw7SGg 6gBQ== X-Gm-Message-State: AO0yUKWPlhFIUOZU5IMxtm9+NMg7DE6H4DQErythoQnGZcwVoCfoCXo/ +n55IGregc5X8HnNocZr5CsjMA== X-Received: by 2002:adf:fc0e:0:b0:2c5:98f2:5b1d with SMTP id i14-20020adffc0e000000b002c598f25b1dmr16746929wrr.63.1677452117251; Sun, 26 Feb 2023 14:55:17 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:8baa:6b32:391b:62de]) by smtp.gmail.com with ESMTPSA id d10-20020a05600c3aca00b003eb369abd92sm6138074wms.2.2023.02.26.14.55.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 14:55:16 -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 v3 15/20] thermal/hwmon: Use the thermal_core.h header Date: Sun, 26 Feb 2023 23:54:01 +0100 Message-Id: <20230226225406.979703-16-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230226225406.979703-1-daniel.lezcano@linaro.org> References: <20230226225406.979703-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?1758936158024340428?= X-GMAIL-MSGID: =?utf-8?q?1758936158024340428?= |
Series |
Self-encapsulate the thermal zone device structure
|
|
Commit Message
Daniel Lezcano
Feb. 26, 2023, 10:54 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> Acked-by: Guenter Roeck <linux@roeck-us.net> --- drivers/thermal/thermal_hwmon.c | 1 + 1 file changed, 1 insertion(+)
Comments
On Sun, 26 Feb 2023 23:54:01 +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 */ Reviewed-by: Jean Delvare <jdelvare@suse.de>
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 */