diff options
author | Eduardo Valentin <eduval@amazon.com> | 2022-03-18 16:30:11 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-05-17 05:52:59 -0700 |
commit | 032c1623c9de51705d0a1c577ffdae746967e88d (patch) | |
tree | bb7a18419e742bd70ff4409d6db42f171c7a0c60 /drivers/hwmon/jc42.c | |
parent | 42226c989789d8da4af1de0c31070c96726d990c (diff) | |
download | linux-032c1623c9de51705d0a1c577ffdae746967e88d.tar.gz linux-032c1623c9de51705d0a1c577ffdae746967e88d.tar.bz2 linux-032c1623c9de51705d0a1c577ffdae746967e88d.zip |
hwmon: (jc42) add HWMON_C_TZ_REGISTER
Add a thermal zone interface to the devices added
under jc42 driver. This way, thermal zones described
in device tree can make use of the of nodes of these
devices.
Cc: Guenter Roeck <linux@roeck-us.net> (maintainer:JC42.4 TEMPERATURE SENSOR DRIVER)
Cc: Jean Delvare <jdelvare@suse.com> (maintainer:HARDWARE MONITORING)
Cc: linux-hwmon@vger.kernel.org (open list:JC42.4 TEMPERATURE SENSOR DRIVER)
Cc: linux-kernel@vger.kernel.org (open list)
Signed-off-by: Eduardo Valentin <eduval@amazon.com>
Signed-off-by: Eduardo Valentin <evalenti@kernel.org>
Link: https://lore.kernel.org/r/20220318233011.13980-1-eduval@amazon.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/jc42.c')
-rw-r--r-- | drivers/hwmon/jc42.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index cb347a6bd8d9..f40df2f29d41 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c @@ -443,6 +443,8 @@ static int jc42_detect(struct i2c_client *client, struct i2c_board_info *info) } static const struct hwmon_channel_info *jc42_info[] = { + HWMON_CHANNEL_INFO(chip, + HWMON_C_REGISTER_TZ | HWMON_C_UPDATE_INTERVAL), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX | HWMON_T_CRIT | HWMON_T_MAX_HYST | |