]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: max17040: adjust thermal channel scaling
authorSvyatoslav Ryhel <clamor95@gmail.com>
Wed, 30 Apr 2025 06:02:39 +0000 (09:02 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 30 Apr 2025 22:50:14 +0000 (00:50 +0200)
commitd055f51731744243b244aafb1720f793a5b61f7b
tree4e50fc93f5db280bf703f512c8fae9b2b5573d80
parent8c7cf0fc8cf5f5dee66d767655e06e190e6f2881
power: supply: max17040: adjust thermal channel scaling

IIO thermal channel is in millidegree while power supply framework expects
decidegree values. Adjust scaling to get correct readings.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Link: https://lore.kernel.org/r/20250430060239.12085-2-clamor95@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17040_battery.c