hwmon: (ltc2945) Allow setting shunt resistor
authorJohn Pruitt <jpruitt@criticallink.com>
Thu, 26 Jan 2023 22:32:26 +0000 (17:32 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 3 Feb 2023 15:30:10 +0000 (07:30 -0800)
commitb11f3d47c0e74e6c0515e31788651713a3a94a50
treef66823f9210549cd7a3adb0bce4e990d20d278f9
parent178b01eccfb0b8149682f61388400bd3d903dddc
hwmon: (ltc2945) Allow setting shunt resistor

Add the ability to specify the value of the shunt resistor in the
device tree instead of assuming it is 1 milliOhm. The value in the
device tree has the name shunt-resistor-micro-ohms and the
default value is 1000 micro-ohms in order to preserve the
current behavior.

Signed-off-by: Jonathan Cormier <jcormier@criticallink.com>
Signed-off-by: John Pruitt <jpruitt@criticallink.com>
[groeck: Fixed multi-line alignment, squashed last patch of series]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc2945.c