From patchwork Fri Jul 7 12:29:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Crawford X-Patchwork-Id: 13304862 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CE28C07CA9 for ; Fri, 7 Jul 2023 12:30:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbjGGMar (ORCPT ); Fri, 7 Jul 2023 08:30:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232568AbjGGMaq (ORCPT ); Fri, 7 Jul 2023 08:30:46 -0400 Received: from ipmail06.adl3.internode.on.net (ipmail06.adl3.internode.on.net [150.101.137.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B860E2684 for ; Fri, 7 Jul 2023 05:30:34 -0700 (PDT) IronPort-SDR: 64a80565_53gRPnPHAJAqu4WInYhThjacGGLRpkzqIswVkqFfjFkvRR1 V2v40YWOnQ4PVJiO6x2eZ8mOF9vIJRK2NuFRO0g== X-SMTP-MATCH: 0 X-IPAS-Result: A2AEAwASBahkjPQc8jxaHQEBAQEJARIBBQUBSYFGgjOCUbYfDwEPAQFEBAEBhQaGFyY4EwECBAEBAQEDAgMBAQEBAQEDAQEGAQEBAQEBBgQUAQEBAUBFhWgNhgc2AQ0BATcBKIEVAYMQgl2qFoEBggkBAQaxFoFfCYFCjCCBGYM7gTw/gU6ED2+LBo4ghV0FAjKNFIEnb4EeN2d6AgkCEWeBCAhfgW4+Ag1UCwtjgRyCTgICEToPBVNfGR0DBwOBBRAvBwQyJgYJGC8lBlEHFxYkCRMVQQSDWAqBCz8VDhGCVyICBzY8G02Cagk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242-28-244.static.tpgi.com.au (HELO bits.crawford.emu.id.au) ([60.242.28.244]) by ipmail06.adl3.internode.on.net with ESMTP; 07 Jul 2023 22:00:29 +0930 Received: from agc.crawford.emu.id.au (agc.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc07]) (authenticated bits=0) by bits.crawford.emu.id.au (8.17.1/8.17.1) with ESMTPSA id 367CU7bJ2026771 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 7 Jul 2023 22:30:17 +1000 Authentication-Results: bits.crawford.emu.id.au; arc=none smtp.remote-ip=fdd2:7aad:d478:1::cb10:cc07 DKIM-Filter: OpenDKIM Filter v2.11.0 bits.crawford.emu.id.au 367CU7bJ2026771 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crawford.emu.id.au; s=s1; t=1688733018; bh=zx9QfcLmTvyoKUNXpEh7rZf8RQdb9136cvPR3C+bnCQ=; h=From:To:Cc:Subject:Date:From; b=AZ7l7LFm0PGv2RNRTlyH7hGN6q8j0RjVkjjjdcxLLtvOLO8S9s95j4VdF//1roBYA tHXPHTXuUH3libkckBXKcssZbgTL0KN+RBZFVRXFPTP/kbEwrBIDEb22mxGFj8QfBF pXSbxNe+y/gohyxT6vsTYvQLgcsvc04C5I18lCYATWb4KGHG2VwqIecYWWPJB246Rg KnVJOAFyLmacHWn2Cp33RkJsOanqR2YiZqJD0loyGONJKx3nqtXQzraS0wOSOLVxFs LMIokyAdVD513F9MG51NUqQ3fAKIv+RAcCO1O6c3ggSg+fmNPvp7OgArDHuMIW+NXv Z094bmZ6bRLtw== From: Frank Crawford To: Jean Delvare , Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Frank Crawford Subject: [PATCH v2 0/3] hwmon: (it87) Separate temperature type to separate funtion and detect AMDTSI Date: Fri, 7 Jul 2023 22:29:49 +1000 Message-ID: <20230707123005.956415-1-frank@crawford.emu.id.au> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (bits.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc01]); Fri, 07 Jul 2023 22:30:18 +1000 (AEST) X-Virus-Scanned: clamav-milter 1.0.1 at bits.crawford.emu.id.au X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org The temperature sensor type needs to be used in multiple places, so split it out into its own function. It is used both in show_temp_type attribute and testing if the attribute should be visible (i.e. is defined). The sensor type also detects the type AMDTSI on certain chipsets. --- Changes since v1: * Split single patch into multi-patch set following review. Frank Crawford (3): Split temperature sensor detection to separate function Improve temperature reporting support Add support to detect sensor type AMDTSI drivers/hwmon/it87.c | 78 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 65 insertions(+), 13 deletions(-)