diff options
author | Guenter Roeck <linux@roeck-us.net> | 2024-08-29 02:21:41 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-08-30 17:34:23 +0200 |
commit | 63fb21afc1f5b2af746f332710491c61e2ad6d74 (patch) | |
tree | b2018086c2b51750da9318ad52a48ae8a638bd66 /drivers/hwmon/pmbus | |
parent | hwmon: (ina2xx) Add support for current limits (diff) | |
download | linux-63fb21afc1f5b2af746f332710491c61e2ad6d74.tar.xz linux-63fb21afc1f5b2af746f332710491c61e2ad6d74.zip |
hwmon: (ina2xx) Use shunt voltage to calculate current
Since the shunt voltage and the current register report the same values
when the chip is calibrated, we can calculate the current directly
from the shunt voltage without relying on chip calibration.
With this change, the current register is no longer accessed. Its
register address is only used to indicate if reading or writing
current or shunt voltage is desired when accessing registers.
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus')
0 files changed, 0 insertions, 0 deletions