[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250519084055.3787-1-yikai.tsai.wiwynn@gmail.com>
Date: Mon, 19 May 2025 16:40:50 +0800
From: Yikai Tsai <yikai.tsai.wiwynn@...il.com>
To: patrick@...cx.xyz
Cc: Yikai Tsai <yikai.tsai.wiwynn@...il.com>,
Carsten Spieß <mail@...sten-spiess.de>,
Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>,
linux-hwmon@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/1] hwmon: (isl28022) Fix current reading calculation
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
Powered by blists - more mailing lists