lkml.org 
[lkml]   [2022]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] hwmon: ltc2945: Add binding and shunt resistor support
Date
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

\
 
 \ /
  Last update: 2023-03-26 23:15    [W:0.211 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site