Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2817459pxb; Sun, 3 Oct 2021 06:34:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR/VdQeLwGVHmZn1ENNyPDHDOMWPt1uS+YbeuXdefytWCLuV0FV+oEiAAOCTkpobUJUI3a X-Received: by 2002:a62:aa1a:0:b0:44c:105:9903 with SMTP id e26-20020a62aa1a000000b0044c01059903mr16529493pff.12.1633268093944; Sun, 03 Oct 2021 06:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633268093; cv=none; d=google.com; s=arc-20160816; b=OjdEbUBw/iEePga4nm+ek0pf8NJxtqLkNimDputGgycPmk+iZaD7YwKHZ3eyHggQcI a2L6W+6PXp5wG8pLSNCOgs95/QZeRA+3nflMh2WRSTQqU0p6VKnT0uGWdfuL91xd9Swj ooG6VIn8TxlX746JJSDOMBYnlfHcPOequ2DiclRta4MRI2rvMh/1pwgMh+yaqxgSIZ0F rh1G/PgDcODH6Sn7N73nW9h/wl/nQb8dPehhDPnrFj1XiS8tIgx574hgfHgwTxBrgE75 y/N7yh+P5XLNrHqPCtaFZHs5m4xojqQYdK+YxhjjAMkLN9wZslwVmOfncRIS6SQiVFzv 7FzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OQKuABLR4Mn/ar6D6NiB5Z9dVycXSPE1KmvSEI66q50=; b=Op3ItfQbVylDhVBDHQOBFpDgXiYqAw3eJKssQFKDMH/WsYzbcZsymWxmYxLGhxLwlz 0q36r2GvPq+e7qtpve7h8YuJ5nh1QalL1jVK02JpOGrn0m+RmH0UdwK13T42MBIGzi2u WpeHCBMFxtq/xpu+/3FGZ9hiWv/kq2Qd8N6itatu+gHfqgRrTca4vgf8IVm1Jz3lNpD4 avCXSFllPQ+SH0aHCLBHK/TyBAv9tbuVnohnbmfg9GrIeqU2paDAc65EtfydtkiokaWG dP/von8BseiAUQCJ1E1+6D4LDnV0h6H1feQ64n/EP2PjDTQvpXDu1Rzi/QTNo168+pww Yb6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=Mw9KgNn5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si14895677plp.5.2021.10.03.06.34.41; Sun, 03 Oct 2021 06:34:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=Mw9KgNn5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbhJCNfj (ORCPT + 99 others); Sun, 3 Oct 2021 09:35:39 -0400 Received: from vulcan.natalenko.name ([104.207.131.136]:58370 "EHLO vulcan.natalenko.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbhJCNfi (ORCPT ); Sun, 3 Oct 2021 09:35:38 -0400 Received: from localhost (unknown [151.237.229.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vulcan.natalenko.name (Postfix) with ESMTPSA id B3138C1D330; Sun, 3 Oct 2021 15:33:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1633268029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OQKuABLR4Mn/ar6D6NiB5Z9dVycXSPE1KmvSEI66q50=; b=Mw9KgNn5HUX/OLo99e4/BnF6cHKlqjqxB8Ybh3/TOX8sGavjxjgHW00C1xqqT+na6fol6w tKUb28qq76cJeKwKKdur48pA9hi0rEmSgFteqy2yxp6fgd1CD2J2I71ubRUdObVjPW9wNE p8eA/tIqtEfCKSnD3Hn251mwgjE0AA4= From: Oleksandr Natalenko To: linux-kernel@vger.kernel.org Cc: Eugene Shalygin , Denis Pauk , matt-testalltheway , Kamil Dudka , Robert Swiecki , Kamil Pietrzak , Igor , Tor Vic , Poezevara , Andy Shevchenko , Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org Subject: [PATCH 2/3] hwmon: (asus_wmi_sensors) split out T_Sensor Date: Sun, 3 Oct 2021 15:33:43 +0200 Message-Id: <20211003133344.9036-3-oleksandr@natalenko.name> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211003133344.9036-1-oleksandr@natalenko.name> References: <20211003133344.9036-1-oleksandr@natalenko.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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