diff mbox series

hwmon: (asus-ec-sensors) add missing sensors for X570-I GAMING

Message ID 20220710085539.1682869-1-eugene.shalygin@gmail.com (mailing list archive)
State Accepted
Headers show
Series hwmon: (asus-ec-sensors) add missing sensors for X570-I GAMING | expand

Commit Message

Eugene Shalygin July 10, 2022, 8:55 a.m. UTC
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>
---
 drivers/hwmon/asus-ec-sensors.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comments

Guenter Roeck July 13, 2022, 1:37 p.m. UTC | #1
On Sun, Jul 10, 2022 at 10:55:38AM +0200, Eugene Shalygin wrote:
> 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>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/asus-ec-sensors.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/hwmon/asus-ec-sensors.c b/drivers/hwmon/asus-ec-sensors.c
> index 625c2baa35ec..0749cd023a32 100644
> --- a/drivers/hwmon/asus-ec-sensors.c
> +++ b/drivers/hwmon/asus-ec-sensors.c
> @@ -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,
>  	},
diff mbox series

Patch

diff --git a/drivers/hwmon/asus-ec-sensors.c b/drivers/hwmon/asus-ec-sensors.c
index 625c2baa35ec..0749cd023a32 100644
--- a/drivers/hwmon/asus-ec-sensors.c
+++ b/drivers/hwmon/asus-ec-sensors.c
@@ -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,
 	},