Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3302318rwj; Mon, 19 Dec 2022 16:25:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXsj+/sQa/cqsrbdsUj9O1LSu4jQuD1Fm16d9A0ivGik9iTR0CPnztTiitHsoavLiPRNIOt9 X-Received: by 2002:a17:906:7b8e:b0:7c1:3f04:efa2 with SMTP id s14-20020a1709067b8e00b007c13f04efa2mr260481ejo.29.1671495927044; Mon, 19 Dec 2022 16:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671495927; cv=none; d=google.com; s=arc-20160816; b=Gc+okvsv06Vca9bjLhiCG9k+qDhXEDQquLL5BD2a/FSVOhy9GjpcKXNJKMh6+mBqp8 f06OnwqhP9Tz4+yLxJzl6FxTRi8Sxw3gUa2snPcgda3AUl68s7pEDrYth0QXka40fVp1 z4YkGHXCU3bUOyKyemNT9uY0F/4CdutupqB5H1MI5PtDXmw2kXpCIbhZ/C0wl8pJFbTc TseIHG3VEihA0+iPy4prK/NbcDrF2kuksCKryJU8I3rJgMuTv0iGNLzyDBULHMorT62N WkWA+Eb7n3V9TD6gOxg/MQKpJvBbdJm4dAJulOS9JWlN0QOQCHH46PCZutvUuBBo25fb ZNOA== 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=x550/OsiWnsnhCUH29zWgidKchxtQqaOBRoxd0yhd7E=; b=p37DnadPBkUoQLHQWgxY5Gc4GC1USjUKhj7beAZEhSclQDwdBOLn4Tza8xHXFd7CTs 4GnMAOzwmU9ycHLjv13DO/2pqkZR1Huv/gx/e5JLcdMAzTLA13GsBZwMgVYTcoLLl2rI 7tL3QFo6zgOk7z8oAm1Gir7wKnNzCpEJNbeHBHiKpl2iW+u+aR65KMQxHaV8DuFwW2yu ELLgs8+Zx37pouPrNt3TmWrQEWtswmAzwEGAd1zSRpBXc86WBPg8mVLxq2iI7W/VBroy RM1/ezBwi5xZ2Zxu0AEIo2iGKkujLCujzBIRppPenqzQuuuyl7dImW6cxznyhOLBh/Zo 5gUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@criticallink.com header.s=google header.b=GPj+5IMR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=criticallink.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ib16-20020a1709072c7000b007c0d95413bfsi8595990ejc.665.2022.12.19.16.25.09; Mon, 19 Dec 2022 16:25:27 -0800 (PST) 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; dkim=pass header.i=@criticallink.com header.s=google header.b=GPj+5IMR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=criticallink.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232633AbiLTAFy (ORCPT + 70 others); Mon, 19 Dec 2022 19:05:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232444AbiLTAFq (ORCPT ); Mon, 19 Dec 2022 19:05:46 -0500 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 421602A4 for ; Mon, 19 Dec 2022 16:05:43 -0800 (PST) Received: by mail-vs1-xe2e.google.com with SMTP id 128so10316049vsz.12 for ; Mon, 19 Dec 2022 16:05:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criticallink.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=x550/OsiWnsnhCUH29zWgidKchxtQqaOBRoxd0yhd7E=; b=GPj+5IMRq85Ho5NoEcvHo8LtajbZsJ8dG9i7MTd85YImxaRBB9aIQq4hcxc7u2Tsl5 tcbkTr/hO7d0u5DKnxFhxpd5R1inx8+cbEcDnTG30hIGAU7zmmOJA8cFNXcZv3T7jUD/ p8OwhospT1ni8Y5B4jX6AGJ3DI/bHVaDthDgexvKds2CBJ30AhagUJOlt9y8Jwi8EVVr mtqVYCLFgObGhUCwYtNaK1218e5khIWj46SQ2IHsDTfsUT05yG75qXYjj6Ahu8gb6YSL +Bnv8Vv3UO71PjYB7jlNhyJ+Me8xEhwBO+DvayhrZydv7+c+9Lg+/39aUgSHApbel9M6 J6Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x550/OsiWnsnhCUH29zWgidKchxtQqaOBRoxd0yhd7E=; b=hct4vV5J0EFQ1mmnjq1RhJYMaRoq27Zvcl7lXG4kBJurA34q8y86VRWeMjpyMNega3 b4ryUgtdsf/ooK8fjHm1hpgVHntcWn6nGG1ScJLV1Qp/9MPJ8xf1Xe/TvNez5P58nMYl xNGyZ9RMbHFbExaW7fyfYER1fEKLBkS9SNtmGB39KlRmoIoBR07lgW8ms8n+QZX8mIUq JXml/p245PrNsIUqADXYgNxx1Rf9ns3hD8NpZfpla2pJKHFAUkLLYIrZeokZPXVmDwCc KLqa9C5LrMr+SV2A8yCjGVrgEUYS7MNRXnfDDIMxWAk9O7dlDZWEEaVcN2/PomCFNqyw ZPOg== X-Gm-Message-State: AFqh2krF4IsgF0bZmFmxi0KcCHk+zCjIlqn2BCuPKbXBd5gbBIDiMAQy Mte7Qc9dYtrZqZSreBvTZbaTsQ== X-Received: by 2002:a67:af1a:0:b0:3ac:df02:e954 with SMTP id v26-20020a67af1a000000b003acdf02e954mr3720164vsl.10.1671494742304; Mon, 19 Dec 2022 16:05:42 -0800 (PST) Received: from jcormier-MS-7A93.syr.criticallink.com (static-72-90-70-109.syrcny.fios.verizon.net. [72.90.70.109]) by smtp.gmail.com with ESMTPSA id o70-20020a374149000000b006e702033b15sm7721430qka.66.2022.12.19.16.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 16:05:41 -0800 (PST) From: "Cormier, Jonathan" To: linux-hwmon@vger.kernel.org Cc: "Cormier, Jonathan" , Jean Delvare , Guenter Roeck , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Bob Duke , John Pruitt Subject: [PATCH v2 0/2] hwmon: ltc2945: Add binding and shunt resistor support Date: Mon, 19 Dec 2022 19:04:53 -0500 Message-Id: <20221220000457.1163446-1-jcormier@criticallink.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221214220727.1350784-1-jcormier@criticallink.com> References: <20221214220727.1350784-1-jcormier@criticallink.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added the ability to specify the value of the shunt resistor in the device tree instead of assuming it is 1 milliOhm. Would be good to backport as well Changes since v1: - Add devicetree match table - Add kerneldoc for the ltc2945_data struct - Cleanup excesive comments about the shunt resistor - Switch to device_property_read_u32() Cormier, Jonathan (1): dt-bindings: hwmon: adi,ltc2945: Add binding John Pruitt (1): hwmon: ltc2945: Allow setting shunt resistor .../bindings/hwmon/adi,ltc2945.yaml | 50 +++++++++++ drivers/hwmon/ltc2945.c | 86 ++++++++++++++----- 2 files changed, 115 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml -- 2.25.1