From patchwork Tue Apr 18 08:30:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 674941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4F0BC77B75 for ; Tue, 18 Apr 2023 08:31:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbjDRIbO (ORCPT ); Tue, 18 Apr 2023 04:31:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjDRIbL (ORCPT ); Tue, 18 Apr 2023 04:31:11 -0400 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 6FB521BD3 for ; Tue, 18 Apr 2023 01:31:08 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-2efbaad9d76so2042178f8f.0 for ; Tue, 18 Apr 2023 01:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681806667; x=1684398667; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=T9/vm0NtXEK+KNOSC6UuWH3QK0gtkFq1Z2YAl8dA+C0=; b=vUGt/Ep2vPSkk4+EuDkVBQYFoDoIL/OKstOlfZSP61VMZjx6Zs4vjJGJst6X1NCXvN BJKYEdxG2Nvn9j5/ktMFRYAc2dV3Lq1QkHAe27BZJag8KDRBtuwYWM8uklV4yXrstKmp 5fW/lsE6I+JNANJcxOPGE37zARO0PVTsSgwY28v1sbrOQmZkAoY0EFr34GxQJ/F76qsS 89CeThIaKYhmNXZr/Fy6lrfnm7jw71eTUvyFBOzS3TqY6OOP3vYRsiawfRDZOqecYIbr OzzbUVf7O6Ysa2zEtwbZ5QNHM3hupz1ySeBCfOfcLY607RqyHxuLqped6xiXZwRfvzK9 86Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681806667; x=1684398667; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=T9/vm0NtXEK+KNOSC6UuWH3QK0gtkFq1Z2YAl8dA+C0=; b=Bt63znhyK8hfIQ7CIF7tsyHU+jzXVClnVsGDME9Gnb4c2XAPiWnvy/NISaNeon9khO ruvAgWbe7GALIwS3MfbFouIS38i3tI2MEr55wM9arSFRwx09AFuwiPrgXLr/+1o4f2aX YPdIL307d5qSqF92i0zlzlyr7D8lJ82X7afL32uo78Utd5ml2DAcKBMwR8I7wxGdwya0 PbZsvIYx0LtEThv9r6+UTD8+rVmdPLp4Dvdioit94QL2akCAKfmhuZGcTJwkRJzDOYA0 DQIPTnw7425TEvAG9YDvMwIXnMvdvCZSzGSxHM4IrFRSVA9JOgbGKBfPLoEnURqWlNHK Ahsw== X-Gm-Message-State: AAQBX9czgSaolmAhmBQgAvsbxP9AtNhCQPmO4i2ABCWgWUIYIhUSjLIX 8YwmSKfsg+lvF1eKrJV8yteFdrBBiFLusZK0LT5yug== X-Google-Smtp-Source: AKy350aQlYObze1DK9Q9kHXpUV95MNaUkzh6XBEGywF9C7h8qvBsmSUcfOa2Y50JSi/HVETLAwKj1w== X-Received: by 2002:adf:df03:0:b0:2fe:d52:7ff1 with SMTP id y3-20020adfdf03000000b002fe0d527ff1mr357972wrl.29.1681806666723; Tue, 18 Apr 2023 01:31:06 -0700 (PDT) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:c25b:18d5:815a:e12b]) by smtp.gmail.com with ESMTPSA id l37-20020a05600c1d2500b003f1738d0d13sm1805978wms.1.2023.04.18.01.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 01:31:06 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, thierry.reding@gmail.com Subject: [PATCH v1 0/3] Move the thermal zone device structure in private header Date: Tue, 18 Apr 2023 10:30:52 +0200 Message-Id: <20230418083055.3611721-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The following series applies on top of the changes: https://lore.kernel.org/all/20230413114647.3878792-1-daniel.lezcano@linaro.org/ There is no functional change, only code reordering and self-encapsulation. The series adds a macro check in thermal_core.h in order to warn in case a driver is including the thermal core private headers. Then the thermal zone device structure is moved from the exported thermal.h header to the thermal_core.h Daniel Lezcano (3): thermal/core: Hardening the self-encapsulation thermal/core: Reorder the headers inclusion thermal/core: Move the thermal zone structure to the private core header drivers/thermal/gov_bang_bang.c | 1 + drivers/thermal/gov_fair_share.c | 1 + drivers/thermal/gov_power_allocator.c | 7 ++- drivers/thermal/gov_step_wise.c | 1 + drivers/thermal/gov_user_space.c | 1 + drivers/thermal/thermal_acpi.c | 1 + drivers/thermal/thermal_core.c | 7 ++- drivers/thermal/thermal_core.h | 79 +++++++++++++++++++++++++++ drivers/thermal/thermal_helpers.c | 1 + drivers/thermal/thermal_hwmon.c | 1 + drivers/thermal/thermal_netlink.c | 1 + drivers/thermal/thermal_of.c | 1 + drivers/thermal/thermal_sysfs.c | 1 + drivers/thermal/thermal_trip.c | 1 + include/linux/thermal.h | 75 ------------------------- 15 files changed, 98 insertions(+), 81 deletions(-)