mbox series

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

Message ID 20230418083055.3611721-1-daniel.lezcano@linaro.org
Headers show
Series Move the thermal zone device structure in private header | expand

Message

Daniel Lezcano April 18, 2023, 8:30 a.m. UTC
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(-)