[PATCH v1 0/3] Move the thermal zone device structure in private header

From: Daniel Lezcano
Date: Tue Apr 18 2023 - 04:31:18 EST


The following series applies on top of the changes:

https://lore.kernel.org/all/20230413114647.3878792-1-daniel.lezcano@xxxxxxxxxx/

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(-)

--
2.34.1