hwmon: (cros_ec) register thermal sensors to thermal framework
authorSung-Chi, Li <lschyi@chromium.org>
Wed, 13 Nov 2024 02:39:51 +0000 (10:39 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Nov 2024 03:03:58 +0000 (19:03 -0800)
commitc1fff92d808bb41064b783a072dee834bcc29f33
treebdc0db73d3e7616ddbf6348c999bcc15e1e18040
parentc40655e3310649866c4ebf7a10f0d53802ebdfa9
hwmon: (cros_ec) register thermal sensors to thermal framework

cros_ec hwmon driver probes available thermal sensors when probing the
driver.  Register these thermal sensors to the thermal framework as well
via setting HWMON_C_REGISTER_TZ as a chip info, 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>;
};

Signed-off-by: Sung-Chi, Li <lschyi@chromium.org>
Message-ID: <20241113024000.3327161-1-lschyi@chromium.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/cros_ec_hwmon.c