thermal: Eliminate trip IDs from thermal driver interface
Get series with b4
b4 am 8409966.T7Z3S40VBb@kreacherVersions newest first
- v1 Latest14 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | thermal: imx: Drop critical trip check from imx_set_trip_temp()drivers/ | +0 | 0 replies | |
| 2/14 | thermal: helpers: Introduce thermal_trip_is_bound_to_cdev()drivers/ include/ | +38 | 0 replies | |
| 3/14 | thermal: trip: Add conversion macros for thermal trip priv fielddrivers/ include/ | +5 | 0 replies | |
| 4/14 | thermal: trip: Pass trip pointer to .set_trip_temp() thermal zone callbackdrivers/ drivers/ drivers/ +7 more | +54 | 0 replies | |
| 5/14 | thermal: trip: Fold __thermal_zone_get_trip() into its callerdrivers/ include/ | +4 | 0 replies | |
| 6/14 | thermal: broadcom: Use thermal_zone_get_crit_temp() in bcm2835_thermal_probe()drivers/ | +3 | 0 replies | |
| 7/14 | thermal: hisi: Use thermal_zone_for_each_trip() in hisi_thermal_register_sensor()drivers/ | +13 | 0 replies | |
| 8/14 | thermal: qcom: Use thermal_zone_get_crit_temp() in qpnp_tm_init()drivers/ | +3 | 0 replies | |
| 9/14 | thermal: tegra: Introduce struct trip_temps for critical and hot tripsdrivers/ | +20 | 0 replies | |
| 10/14 | thermal: tegra: Use thermal_zone_for_each_trip() for walking trip pointsdrivers/ drivers/ | +33 | 0 replies | |
| 11/14 | thermal: helpers: Drop get_thermal_instance()drivers/ drivers/ | +6 | 0 replies | |
| 12/14 | thermal: uniphier: Use thermal_zone_for_each_trip() for walking trip pointsdrivers/ | +23 | 2 replies | |
| 13/14 | thermal: trip: Replace thermal_zone_get_num_trips()drivers/ drivers/ include/ | +5 | 3 replies | |
| 14/14 | thermal: trip: Drop thermal_zone_get_trip()drivers/ include/ | +0 | 0 replies |
Reviews trailers per patch
1 of 14 patches has a Reviewed-by or Acked-by.
| Patch | Kunihiko Hayashi |
|---|---|
| 1/14 | |
| 2/14 | |
| 3/14 | |
| 4/14 | |
| 5/14 | |
| 6/14 | |
| 7/14 | |
| 8/14 | |
| 9/14 | |
| 10/14 | |
| 11/14 | |
| 12/14 | R-b |
| 13/14 | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 00/14] thermal: Eliminate trip IDs from thermal driver interface
Hi Everyone,
Trip IDs, which should be internal to the thermal core, are still used in the thermal driver interface in some places, but fortunately it does not take too much effort to get rid of them.
First of all, the .set_trip_temp() zone callback uses a trip ID as one of its arguments, but this isn't really necessary and there are a few weaknesses related to doing that. Please see the changelog of patch [04/14] for details.
Apart from that, several drivers use the thermal_zone_get_trip() helper function for trip point lookup which can be differently. Patches [06-12/14] address those cases (please see the individual patch changelogs for details).
The remaining patches in the series are preliminary changes or cleanups.
The series is based on the two cleanup series posted previously:
https://lore.kernel.org/linux-pm/5794974.DvuYhMxLoT@kreacher/T/#t
https://lore.kernel.org/linux-pm/12458899.O9o76ZdvQC@kreacher/T/#t
that have been included into the linux-next thermal material.
This series is available from the thermal-core-experimental branch in linux-pm.git.
Thanks!