[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230109233534.1932370-1-jcormier@criticallink.com>
Date: Mon, 9 Jan 2023 18:35:29 -0500
From: Jonathan Cormier <jcormier@...ticallink.com>
To: linux-hwmon@...r.kernel.org
Cc: Jonathan Cormier <jcormier@...ticallink.com>,
Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Bob Duke <bduke@...ticallink.com>,
John Pruitt <jpruitt@...ticallink.com>
Subject: [PATCH v3 0/2] hwmon: ltc2945: Add binding and shunt resistor support
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 v2:
- Remove newline
- Combined overflow fix with "Allow setting shunt resistor" commit
- Add description to "Add devicetree match table"
- Add fix for unhandled error case in ltc2945_value_store
- Use imperative in descriptions
- Remove unneeded overflow check from ltc2945_reg_to_val
- Fix up DIV_ROUND_CLOSEST_ULL calls, per docs divisor should be 32-bit
- Split one DIV_ROUND_CLOSEST_ULL change into separate commit per
Guenter Roeck's comment
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
Powered by blists - more mailing lists