• Guenter Roeck's avatar
    hwmon: (ina2xx) Add support for current limits · 4d5c2d98
    Guenter Roeck authored
    While the chips supported by this driver do not directly support current
    limits, they do support setting shunt voltage limits. The shunt voltage
    divided by the shunt resistor value is the current. On top of that,
    calibration values are set such that in the shunt voltage register and
    the current register report the same values. That means we can report and
    configure current limits based on shunt voltage limits, and we can do so
    with much better accuracy than by setting shunt voltage limits.
    Reviewed-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    4d5c2d98
ina2xx.rst 4.02 KB