Re: [PATCH v2 14/14] hwmon: (ina2xx) Use shunt voltage to calculate current

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 29, 2024 at 06:05:54PM -0700, Guenter Roeck wrote:
> 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.
> 
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Reviewed-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux