[PATCH v1 0/1] hwmon: (isl28022) Fix current reading calculation

Yikai Tsai posted 1 patch 7 months ago
There is a newer version of this series
drivers/hwmon/isl28022.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
[PATCH v1 0/1] hwmon: (isl28022) Fix current reading calculation
Posted by Yikai Tsai 7 months ago
Fix the driver for Renesas ISL28022 power monitor chip.
According to the ISL28022 datasheet, bit15 of the current register is
representing -32768. Fix the calculation to properly handle this bit,
ensuring correct measurements for negative values.

v1: fix current reading calculation

Yikai Tsai (1):
  hwmon: (isl28022) Fix current reading calculation

 drivers/hwmon/isl28022.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

-- 
2.25.1