Re: [PATCH v2] hwmon: (cros_ec) register thermal sensors to thermal framework

From: Guenter Roeck
Date: Mon Nov 11 2024 - 12:02:16 EST


On 11/11/24 01:50, Sung-Chi wrote:
From: "Sung-Chi, Li" <lschyi@xxxxxxxxxxxx>

cros_ec hwmon driver probes available thermal sensors when probing the
driver. Register these thermal sensors to the thermal framework, such
that thermal framework can adopt these sensors as well.

To make cros_ec registrable to thermal framework, the cros_ec dts need
the corresponding changes:

&cros_ec {
#thermal-sensor-cells = <1>;
};

Change-Id: I29b638427c715cb44391496881fc61ad53abccaf

Drop.

Signed-off-by: Sung-Chi, Li <lschyi@xxxxxxxxxxxx>

Detailed explanation will be needed: Why not use HWMON_C_REGISTER_TZ ?
Unless I am missing something, this code just duplicates code from the hwmon core.

Please do not send follow-up patch series as response to previous ones.

Guenter