This is an alternate approach to the v1[1] I sent earlier. I've added the
INA780 to the existing ina238.c driver. INA780 can mostly be thought of as a
variant of the INA238 that doesn't require an external shunt. This is probably
a little messier than the separate driver but there is about half the amount of
code compared to v1 so perhaps the messiness is worth it.
[1] - https://lore.kernel.org/linux-hwmon/20250806005127.542298-1-chris.packham@alliedtelesis.co.nz/
Chris Packham (2):
dt-bindings: hwmon: ti,ina2xx: Add INA780 device
hwmon: (ina238) Add support for INA780
.../devicetree/bindings/hwmon/ti,ina2xx.yaml | 1 +
Documentation/hwmon/ina238.rst | 20 ++
drivers/hwmon/ina238.c | 255 ++++++++++++++----
3 files changed, 224 insertions(+), 52 deletions(-)
--
2.50.1