hwmon: (ltc4151) Make shunt-resistor configurable
authorDaniel Golle <daniel@makrotopia.org>
Mon, 1 Aug 2016 10:07:18 +0000 (12:07 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 9 Sep 2016 04:34:16 +0000 (21:34 -0700)
commit30fe976fe7a8de2d29c152cdcae207231503d564
tree7048046f0d1fe1872fc82f0ae3fee4abd2bbee39
parent4f120397fc3f0717d1ffac76d6338e87e13e0e9f
hwmon: (ltc4151) Make shunt-resistor configurable

Allow to specify the resistance of the attached shunt via DT by
adding the shunt-resistor property. Fall-back to the previous
default (1 mOhm) if unset.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[groeck: Fixed 'line over 80 columns' checkpatch warning]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc4151.c