]> git.itanic.dy.fi Git - linux-stable/commitdiff
hwmon: (asus-ec-sensors) add missing sensors for X570-I GAMING
authorEugene Shalygin <eugene.shalygin@gmail.com>
Sun, 10 Jul 2022 08:55:38 +0000 (10:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 08:47:20 +0000 (10:47 +0200)
[ Upstream commit 1c4e4f4a0e8d9ebe8be1c838fec4fb7053a989d9 ]

VRM and chipset temperature for ROG STRIX X570-I GAMING were missing
according to a user contribution to the LHM project [1].

[1] https://github.com/LibreHardwareMonitor/LibreHardwareMonitor/pull/767

Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20220710085539.1682869-1-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Stable-dep-of: 88700d1396ba ("hwmon: (asus-ec-sensors) autoload module via DMI data")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/asus-ec-sensors.c

index 625c2baa35ec607d98aad04acd5330993429c055..0749cd023a323fe8532044ac74a15fd86c4b70b5 100644 (file)
@@ -366,9 +366,10 @@ static const struct ec_board_info board_info[] = {
        },
        {
                .board_names = {"ROG STRIX X570-I GAMING"},
-               .sensors = SENSOR_TEMP_T_SENSOR | SENSOR_FAN_VRM_HS |
-                       SENSOR_FAN_CHIPSET | SENSOR_CURR_CPU |
-                       SENSOR_IN_CPU_CORE,
+               .sensors = SENSOR_TEMP_CHIPSET | SENSOR_TEMP_VRM |
+                       SENSOR_TEMP_T_SENSOR |
+                       SENSOR_FAN_VRM_HS | SENSOR_FAN_CHIPSET |
+                       SENSOR_CURR_CPU | SENSOR_IN_CPU_CORE,
                .mutex_path = ASUS_HW_ACCESS_MUTEX_ASMX,
                .family = family_amd_500_series,
        },