Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp515064rwr; Thu, 4 May 2023 06:22:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4LadT52R0ODBzAGXBxTihfpJ40Rc88wUlvfkoDDCGBfMjvxGd1Szv9vEfr033Y+OVjySR+ X-Received: by 2002:a05:6a00:1409:b0:63d:4185:402b with SMTP id l9-20020a056a00140900b0063d4185402bmr2650678pfu.4.1683206569953; Thu, 04 May 2023 06:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683206569; cv=none; d=google.com; s=arc-20160816; b=mRdj9e+NwpErkwY+aexB9sLTZYvaxi72HDukl4IYVZCe3iso5jo3l9jrbRdqulOuOS D/UpfKtYQnDjGuI1IW4q37xGO2tYC2YW7rH12BK8AIGOGOfQIxGMN/3CW1QOisDPd/7R DrYBWyejnDxPYGD/YaF9OqrZfzaIAiQ2p9S/OoTO6OnbckUYeTOjvPl0Ew4LY2iBXiuh iPGgfOZ2UeIfFmyDBZJQEOGS64mKKNb8/xu+7t2X6jntTtrKipMVwVpAIG4/J3YtRwuo sZXv0HzCg0Ea0YM/T0ZyM7uw9ww3Qm1eC3qGyGhsuXmcma9OswZHs2nUfktdrKgUQBUA p+ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=oIipJtrtnEalnuxCwzin2hv3iv5Yfbi7wQTsnRXb1xE=; b=dlvyhu1iJsLityk7HQ9wTCKHWM1G374Gcb5paSut8FhWPdNYjipbXC30yJQ78Vag1O KauL9pQoXTcJhTFkE8fdLIFUCxbZoaK9XgwPpWguCjg8kLaw5j4ywcRmMFnrAfFfIDel ioZOhBsSf7QhSielDDWUM2uzi9trsUkOoxmRZ0VkA6jOIIsE9Igjoe0xWv56gPtM7W+3 8CM8vF24JOuELT/0w6FC5kZrJJhN37eBNb+RJWtan/MLf3tI3pp4TdOKm2tDyWG4UEP5 6BmbWJxzSbyD2EJKnk5kusJ1FrmXJ6WwxFQ3knApcarpQ04tnjb8cMLaRUQZRyW1/9t2 Oy3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020aa79838000000b0063b54679d0dsi1157810pfl.44.2023.05.04.06.22.36; Thu, 04 May 2023 06:22:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230454AbjEDNR4 (ORCPT + 99 others); Thu, 4 May 2023 09:17:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjEDNRz (ORCPT ); Thu, 4 May 2023 09:17:55 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 850AB4C24; Thu, 4 May 2023 06:17:54 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 344CX03c016081; Thu, 4 May 2023 09:17:38 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3qc40yumch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 May 2023 09:17:37 -0400 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 344DHa4M018001 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 4 May 2023 09:17:36 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 4 May 2023 09:17:35 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 4 May 2023 09:17:35 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Thu, 4 May 2023 09:17:35 -0400 Received: from daniel-Precision-5530.ad.analog.com ([10.48.65.214]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 344DHKoQ020836; Thu, 4 May 2023 09:17:22 -0400 From: Daniel Matyas CC: Daniel Matyas , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , , , , Subject: [PATCH v5 0/2] Hwmon driver for MAX31827 temperature switch Date: Thu, 4 May 2023 19:17:09 +0300 Message-ID: <20230504161714.6281-1-daniel.matyas@analog.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: Z7A3Hbr773vN-GlW6s-RVpdHSh_Ezqnd X-Proofpoint-GUID: Z7A3Hbr773vN-GlW6s-RVpdHSh_Ezqnd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-04_08,2023-05-04_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 malwarescore=0 adultscore=0 clxscore=1015 suspectscore=0 spamscore=0 phishscore=0 mlxlogscore=764 impostorscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305040107 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Readded the of_match_table. Added default cases where it was necessary. Used mutex where it was necessary. Added conversion to milli-degrees and milli-seconds. Daniel Matyas (2): dt-bindings: hwmon: add MAX31827 hwmon: max31827: add MAX31827 driver .../bindings/hwmon/adi,max31827.yaml | 54 +++ Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max31827.rst | 83 ++++ MAINTAINERS | 9 + drivers/hwmon/Kconfig | 11 + drivers/hwmon/Makefile | 2 +- drivers/hwmon/max31827.c | 427 ++++++++++++++++++ 7 files changed, 586 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,max31827.yaml create mode 100644 Documentation/hwmon/max31827.rst create mode 100644 drivers/hwmon/max31827.c -- 2.34.1