Re: [PATCH v4 07/10] thermal/of: Add cooling device ID support

From: Lukasz Luba

Date: Fri May 29 2026 - 12:06:04 EST




On 5/26/26 15:08, Daniel Lezcano wrote:
Introduce an identifier (cdev_id) for cooling devices registered from
device tree.

This prepares support for a new DT binding where cooling devices are
identified by a tuple (device node, ID), instead of relying on child
nodes.

Existing users are updated to pass a default ID of 0, preserving the
current behavior.

Future changes will extend the cooling map parsing to match cooling
devices based on both the device node and the ID.

No functional change intended.

Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxxxxxxxx>
---
drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 5 +++--
drivers/thermal/cpufreq_cooling.c | 2 +-
drivers/thermal/cpuidle_cooling.c | 2 +-
drivers/thermal/devfreq_cooling.c | 2 +-
drivers/thermal/thermal_of.c | 14 ++++++++------
include/linux/thermal.h | 6 ++++--
6 files changed, 18 insertions(+), 13 deletions(-)


Reviewed-by: Lukasz Luba <lukasz.luba@xxxxxxx>