[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211003133344.9036-3-oleksandr@natalenko.name>
Date: Sun, 3 Oct 2021 15:33:43 +0200
From: Oleksandr Natalenko <oleksandr@...alenko.name>
To: linux-kernel@...r.kernel.org
Cc: Eugene Shalygin <eugene.shalygin@...il.com>,
Denis Pauk <pauk.denis@...il.com>,
matt-testalltheway <sefoci9222@...unway.com>,
Kamil Dudka <kdudka@...hat.com>,
Robert Swiecki <robert@...ecki.net>,
Kamil Pietrzak <kpietrzak@...root.org>, Igor <igor@...lig.com>,
Tor Vic <torvic9@...lbox.org>, Poezevara <nephartyz@...il.com>,
Andy Shevchenko <andriy.shevchenko@...el.com>,
Guenter Roeck <linux@...ck-us.net>,
Jean Delvare <jdelvare@...e.com>, linux-hwmon@...r.kernel.org
Subject: [PATCH 2/3] hwmon: (asus_wmi_sensors) split out T_Sensor
Move `T_Sensor` addition into a separate `case` statement in preparation
for the next patch that introduces a board without it.
No functional change.
Signed-off-by: Oleksandr Natalenko <oleksandr@...alenko.name>
---
drivers/hwmon/asus_wmi_sensors.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/drivers/hwmon/asus_wmi_sensors.c b/drivers/hwmon/asus_wmi_sensors.c
index 6b04fad18891..98e761861601 100644
--- a/drivers/hwmon/asus_wmi_sensors.c
+++ b/drivers/hwmon/asus_wmi_sensors.c
@@ -144,14 +144,22 @@ static void asus_wmi_ec_fill_board_sensors(struct asus_wmi_ec_info *ec, int boar
asus_wmi_ec_set_sensor_info(si++, "Motherboard", hwmon_temp,
asus_wmi_ec_make_sensor_address(1, 0x00, 0x3C),
&ec->nr_registers);
- asus_wmi_ec_set_sensor_info(si++, "T_Sensor", hwmon_temp,
- asus_wmi_ec_make_sensor_address(1, 0x00, 0x3D),
- &ec->nr_registers);
asus_wmi_ec_set_sensor_info(si++, "VRM", hwmon_temp,
asus_wmi_ec_make_sensor_address(1, 0x00, 0x3E),
&ec->nr_registers);
}
+ switch (board) {
+ case BOARD_RS_B550_E_G:
+ case BOARD_RS_X570_E_G:
+ case BOARD_R_C8H:
+ case BOARD_R_C8DH:
+ case BOARD_R_C8F:
+ asus_wmi_ec_set_sensor_info(si++, "T_Sensor", hwmon_temp,
+ asus_wmi_ec_make_sensor_address(1, 0x00, 0x3D),
+ &ec->nr_registers);
+ }
+
switch (board) {
case BOARD_RS_X570_E_G:
case BOARD_R_C8H:
--
2.33.0
Powered by blists - more mailing lists