mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
hwmon: (ina2xx) Add device tree support to pass the shunt resistor
Adding another way that is device tree to pass the shunt resistor value to driver except for platform data. Signed-off-by: Tang Yuantian <[email protected]> [Guenter Roeck: Added missing of.h include] Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
87438c2c54
commit
31e7ad74f6
3 changed files with 30 additions and 1 deletions
|
|
@ -44,4 +44,6 @@ The INA226 monitors both a shunt voltage drop and bus supply voltage.
|
|||
The INA230 is a high or low side current shunt and power monitor with an I2C
|
||||
interface. The INA230 monitors both a shunt voltage drop and bus supply voltage.
|
||||
|
||||
The shunt value in micro-ohms can be set via platform data.
|
||||
The shunt value in micro-ohms can be set via platform data or device tree.
|
||||
Please refer to the Documentation/devicetree/bindings/i2c/ina2xx.txt for bindings
|
||||
if the device tree is used.
|
||||
|
|
|
|||
Loading…
Reference in a new issue