hwmon: (ina238) Improve current dynamic range
authorGuenter Roeck <linux@roeck-us.net>
Wed, 3 Sep 2025 23:02:48 +0000 (16:02 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 7 Sep 2025 23:34:34 +0000 (16:34 -0700)
commitbcac89eebefbcf886c2b971de4bf026073e0ee8e
tree11bc1fc9f44fc8cf44521b2e1b37b6a365f3f1d8
parent7e420b6a274206f339fe3617943ba1ef9dd1fcb0
hwmon: (ina238) Improve current dynamic range

The best possible dynamic range for current measurements is achieved
if the shunt register value matches the current register value. Adjust
the calibration register as well as fixed and default shunt resistor
values accordingly to achieve this range.

Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz> # INA780
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ina238.c