diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2015-01-05 09:20:55 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-01-26 00:23:59 -0500 |
commit | 8a5fc79513afe325fd755026299d0bfdb47e42de (patch) | |
tree | 0e61597ce857a95050ecafc262a0902d47e49e99 /Documentation/hwmon/ina2xx | |
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>
Diffstat (limited to 'Documentation/hwmon/ina2xx')
-rw-r--r-- | Documentation/hwmon/ina2xx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/hwmon/ina2xx b/Documentation/hwmon/ina2xx index 4223c2d3b508..320dd69fb5e6 100644 --- a/Documentation/hwmon/ina2xx +++ b/Documentation/hwmon/ina2xx | |||
@@ -44,6 +44,7 @@ The INA226 monitors both a shunt voltage drop and bus supply voltage. | |||
44 | The INA230 is a high or low side current shunt and power monitor with an I2C | 44 | The INA230 is a high or low side current shunt and power monitor with an I2C |
45 | interface. The INA230 monitors both a shunt voltage drop and bus supply voltage. | 45 | interface. The INA230 monitors both a shunt voltage drop and bus supply voltage. |
46 | 46 | ||
47 | The shunt value in micro-ohms can be set via platform data or device tree. | 47 | The shunt value in micro-ohms can be set via platform data or device tree at |
48 | Please refer to the Documentation/devicetree/bindings/i2c/ina2xx.txt for bindings | 48 | compile-time or via the shunt_resistor attribute in sysfs at run-time. Please |
49 | refer to the Documentation/devicetree/bindings/i2c/ina2xx.txt for bindings | ||
49 | if the device tree is used. | 50 | if the device tree is used. |