From: Bartosz Golaszewski Date: Mon, 5 Jan 2015 14:20:55 +0000 (+0100) Subject: hwmon: (ina2xx) make shunt resistance configurable at run-time X-Git-Tag: fixes-v4.0-rc1~186^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a5fc79513afe325fd755026299d0bfdb47e42de;p=pandora-kernel.git hwmon: (ina2xx) make shunt resistance configurable at run-time The shunt resistance can only be set via platform_data or device tree. This isn't suitable for devices in which the shunt resistance can change/isn't known at boot-time. Add a sysfs attribute that allows to read and set the shunt resistance. Signed-off-by: Bartosz Golaszewski Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed