mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/1] hwmon: (isl28022) Fix current reading calculation
@ 2025-05-19  6:16 Yikai Tsai
  2025-05-19  6:16 ` [PATCH v1 1/1] " Yikai Tsai
  0 siblings, 1 reply; 4+ messages in thread
From: Yikai Tsai @ 2025-05-19  6:16 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.

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


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

end of thread, other threads:[~2025-05-19 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-19  6:16 [PATCH v1 0/1] hwmon: (isl28022) Fix current reading calculation Yikai Tsai
2025-05-19  6:16 ` [PATCH v1 1/1] " Yikai Tsai
2025-05-19  8:25   ` kernel test robot
2025-05-19 13:22   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®