]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: dell-ddv: Fix temperature calculation
authorArmin Wolf <W_Armin@gmx.de>
Wed, 5 Mar 2025 05:30:07 +0000 (06:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:12 +0000 (14:39 +0200)
commit5b6739341500c8dff9bb0dd3b1a62498de9cc021
tree1332f8657f562ac39afcea5751bdff355e3743f3
parent0654ea13976cbb526f80956246e236c6a5340629
platform/x86: dell-ddv: Fix temperature calculation

[ Upstream commit 7a248294a3145bc65eb0d8980a0a8edbb1b92db4 ]

On the Dell Inspiron 3505 the battery temperature is always
0.1 degrees larger than the temperature show inside the OEM
application.

Emulate this behaviour to avoid showing strange looking values
like 29.1 degrees.

Fixes: 0331b1b0ba653 ("platform/x86: dell-ddv: Fix temperature scaling")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20250305053009.378609-2-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/dell/dell-wmi-ddv.c