linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/1] hwmon: (isl28022) Fix current reading calculation
@ 2025-05-19  8:40 Yikai Tsai
  2025-05-19  8:40 ` [PATCH v2 1/1] " Yikai Tsai
  0 siblings, 1 reply; 7+ messages in thread
From: Yikai Tsai @ 2025-05-19  8:40 UTC (permalink / raw)
  To: patrick
  Cc: Yikai Tsai, Carsten Spieß, Jean Delvare, Guenter Roeck,
	linux-hwmon, linux-kernel

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-16 13:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-19  8:40 [PATCH v2 0/1] hwmon: (isl28022) Fix current reading calculation Yikai Tsai
2025-05-19  8:40 ` [PATCH v2 1/1] " Yikai Tsai
2025-05-20  4:56   ` Guenter Roeck
2025-06-10 12:27   ` Geert Uytterhoeven
2025-06-16 12:59     ` Guenter Roeck
2025-06-16 13:00       ` Guenter Roeck
2025-06-16 13:17       ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).