Skip to content
Commit b2446a16 authored by Yikai Tsai's avatar Yikai Tsai Committed by Guenter Roeck
Browse files

hwmon: (isl28022) Fix current reading calculation



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.

Signed-off-by: default avatarYikai Tsai <yikai.tsai.wiwynn@gmail.com>
Link: https://lore.kernel.org/r/20250519084055.3787-2-yikai.tsai.wiwynn@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 0ddce554
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment