Skip to content

Commit c1fff92

Browse files
Sung-Chi, Ligroeck
authored andcommitted
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 <[email protected]> Message-ID: <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent c40655e commit c1fff92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/cros_ec_hwmon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ static umode_t cros_ec_hwmon_is_visible(const void *data, enum hwmon_sensor_type
141141
}
142142

143143
static const struct hwmon_channel_info * const cros_ec_hwmon_info[] = {
144+
HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ),
144145
HWMON_CHANNEL_INFO(fan,
145146
HWMON_F_INPUT | HWMON_F_FAULT,
146147
HWMON_F_INPUT | HWMON_F_FAULT,

0 commit comments

Comments
 (0)