From patchwork Tue Feb 28 11:22:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 62447 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2955781wrd; Tue, 28 Feb 2023 03:26:49 -0800 (PST) X-Google-Smtp-Source: AK7set+hEgOp7WZe3Ni8GiEfser166xaFZ/uWy8RwCNKWSC0L74J3nJhDrt5HC5u8Ry1QMJIwYmC X-Received: by 2002:a17:902:d54d:b0:19e:2298:c53d with SMTP id z13-20020a170902d54d00b0019e2298c53dmr2183039plf.10.1677583609122; Tue, 28 Feb 2023 03:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677583609; cv=none; d=google.com; s=arc-20160816; b=uqHvutUs6nX97ZCou8wu3HeE8+hereFrmiNT4z/ToaE5ArhZARj1pbarZ7mihpF5Kf aUBiiglwFkLVQQZIgKacObq2OZFrCLzdJb3cgE7Uwe7xbJyo+Dawa0j0ZVOqZPu32pFR MiNuvfu5zcXc9ZnQU9AObg4tlFHu239OECkaJxnH71cOxTH9UQQRxdjJtvbpAOi83Xw2 EGkVOdl9fqQqGEyrWN1UXbr/oGFj1Kc1b7erdIlyc+yS9h6YVbYGxuJy5CuwjkpBYv6F 4DNeT3pkkicCgMPYN+KWMCF4fwvCHkkuwsHQPvHrmkF4RVndGbYTs0OVjALEYzhYHpx+ q/kA== 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=tS0guMTDp+HnyAw7+AQL4Z1IASYNHpKANmt65sLAMFo=; b=hVvr0La0Qx4b1Da4XMrfXBqYERGZE6MgkfK0E2wRL0WbxUcMFLhFBKwhbF5rdqYSJh VKrnVOKJYu6ucz2J3M3Pa2NGM4heFbFKyzy1gjTdNWHfXlNRBGyWONBnkhBQhp3HGlbG L4lzdRYY5JpFS9IIv92u+BYiA5mhIegCP7ndvAPBpHYvFCWzR03FVObtsvJ3uyc7fog8 0FILuobAe3JWX4W1Z+Sge7K29VynGlSFgW7QCNW4zB225sOdreP+eRWc4iFQ2zu6u8J1 qdLPFYziWK4aqqPiM4iy2I1NGvKIJt4uB9V9RFv5zoi+SMEIm2Q5HV2LWmzVjJeoi+gt N41g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=As5cnEs6; 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 l1-20020a170903244100b00198fca8211bsi10187788pls.57.2023.02.28.03.26.35; Tue, 28 Feb 2023 03:26:49 -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=As5cnEs6; 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 S231548AbjB1LZB (ORCPT + 99 others); Tue, 28 Feb 2023 06:25:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbjB1LYN (ORCPT ); Tue, 28 Feb 2023 06:24:13 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A067D20577 for ; Tue, 28 Feb 2023 03:23:43 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id bt28so9332120wrb.8 for ; Tue, 28 Feb 2023 03:23:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677583418; 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=tS0guMTDp+HnyAw7+AQL4Z1IASYNHpKANmt65sLAMFo=; b=As5cnEs6KbgFzz64hQ+xg783ZBl8nVKUvbDG3lsn7Xxbsgc+d5VLgBw9h8c2bEVmYD Q0heWRMa2Z0RnelgQzMkmiEu+6pZfz6z6lZNnPeSpSW29d/425F+G7wPhR3AjBALI9Fp LoLvyYA+Ae7tnAxSxdZ8lls8x4a0Vy/y/4AHj/sjTk4H4x5/afakN2wU3/8SsQlR1nQ9 75wqnM/NAkWSDsqp89Nr/sYttZBTCYCXLCdnG3OGCk13jiI/uOOBmCCQLTZoy7KlmE40 jLrMIP8BAx1wwJfjDna2h+qWZRhY6xh+d1qOA3hNheEgO0PYKNUGGrXcLdz/DQ/hFh8U nmjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677583418; 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=tS0guMTDp+HnyAw7+AQL4Z1IASYNHpKANmt65sLAMFo=; b=lTFC36lTy+H4TQRsLizzEu+CUQmF8UEGGazZaXG4B0WObvNob+7yKH+yc3F1kU/TDC OpBCwCp1B0DB+uSMDnYOZACSVdXG5RUdc2tNpdR4tfGEyHsvh6Z4HUx/oZvfb4vCy0hR BhrClQRagIYPtWMnN9ZLGMXcrHtAI4qho9dGwPVSM3VKqHHArKOJB6LaZRO/yPFe8kx2 RnNY+vbdxEqfp5CpmrIp3P+9XHVf2Eo43exahL3X+C+AGp2C6qAcQp7sS2HTWgjpAFrM nuMLwL/2vXYeSEKGQreFE+x6G5M2z5OR0TtrHhVuTFPdfiLDqj2BhsstM9OtXvj3a9qn 7gkg== X-Gm-Message-State: AO0yUKXuxFLC9mavQ5wk25LEstcgVoLPtySkTUxWwHPwbtlpn2Doshxc yPa6LziHuViD4F02x+5MNCND9A== X-Received: by 2002:a05:6000:18f:b0:2bd:d34e:5355 with SMTP id p15-20020a056000018f00b002bdd34e5355mr1611428wrx.20.1677583418047; Tue, 28 Feb 2023 03:23:38 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:6830:6390:2815:b6a5]) by smtp.gmail.com with ESMTPSA id z5-20020a5d6545000000b002c5501a5803sm9598130wrv.65.2023.02.28.03.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 03:23:37 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Jean Delvare , Guenter Roeck , Jean Delvare , Amit Kucheria , Zhang Rui Subject: [PATCH v4 15/19] thermal/hwmon: Use the thermal_core.h header Date: Tue, 28 Feb 2023 12:22:34 +0100 Message-Id: <20230228112238.2312273-16-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230228112238.2312273-1-daniel.lezcano@linaro.org> References: <20230228112238.2312273-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759073910318904565?= X-GMAIL-MSGID: =?utf-8?q?1759073910318904565?= 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 Cc: Guenter Roeck Signed-off-by: Daniel Lezcano Acked-by: Guenter Roeck Reviewed-by: Jean Delvare --- 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 #include "thermal_hwmon.h" +#include "thermal_core.h" /* hwmon sys I/F */ /* thermal zone devices with the same type share one hwmon device */