commit | 8a5fc79513afe325fd755026299d0bfdb47e42de | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Mon Jan 05 15:20:55 2015 +0100 |
committer | Guenter Roeck <linux@roeck-us.net> | Sun Jan 25 21:23:59 2015 -0800 |
tree | 0e61597ce857a95050ecafc262a0902d47e49e99 | |
parent | e794704000cf7954039b8daab9dfae2a74142f07 [diff] |
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 <bgolaszewski@baylibre.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>