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.
v2: Add the missing variable declaration
v1: fix current reading calculation
Yikai Tsai (1):
hwmon: (isl28022) Fix current reading calculation
drivers/hwmon/isl28022.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--
2.25.1