linux/drivers/platform/x86/dell
Armin Wolf 0331b1b0ba platform/x86: dell-ddv: Fix temperature scaling
After using the built-in UEFI hardware diagnostics to compare
the measured battery temperature, i noticed that the temperature
is actually expressed in tenth degree kelvin, similar to the
SBS-Data standard. For example, a value of 2992 is displayed as
26 degrees celsius.
Fix the scaling so that the correct values are being displayed.

Tested on a Dell Inspiron 3505.

Fixes: a77272c160 ("platform/x86: dell: Add new dell-wmi-ddv driver")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20230218115318.20662-2-W_Armin@gmx.de
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2023-03-07 11:37:27 +01:00
..
dell-wmi-sysman platform/x86: dell-wmi-sysman: Make kobj_type structure constant 2023-02-10 17:24:03 +01:00
Kconfig platform/x86: dell-ddv: Add hwmon support 2023-02-13 12:07:50 +01:00
Makefile platform/x86: dell: Add new dell-wmi-ddv driver 2022-11-16 08:48:18 +01:00
alienware-wmi.c platform/x86/dell: alienware-wmi: Use sysfs_emit() instead of scnprintf() 2022-12-08 17:07:07 +01:00
dcdbas.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
dcdbas.h platform/x86/dell: add buffer allocation/free functions for SMI calls 2022-04-27 21:45:28 +02:00
dell-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
dell-rbtn.c ACPI: make remove callback of ACPI driver void 2022-11-23 19:11:22 +01:00
dell-rbtn.h
dell-smbios-base.c platform/x86: dell-smbios-base: Use sysfs_emit() 2022-09-27 15:05:32 +02:00
dell-smbios-smm.c platform/x86/dell: add buffer allocation/free functions for SMI calls 2022-04-27 21:45:28 +02:00
dell-smbios-wmi.c platform/x86: dell-smbios-wmi: Add missing kfree in error-exit from run_smbios_call 2021-08-26 16:09:43 +02:00
dell-smbios.h
dell-smo8800.c platform/x86: dell-smo8800: Use min_t() for comparison and assignment 2023-02-03 10:01:50 +01:00
dell-wmi-aio.c
dell-wmi-base.c platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table 2023-01-24 13:41:13 +01:00
dell-wmi-ddv.c platform/x86: dell-ddv: Fix temperature scaling 2023-03-07 11:37:27 +01:00
dell-wmi-descriptor.c platform/x86: Adjust Dell drivers to a personal email address 2021-04-07 19:47:23 +02:00
dell-wmi-descriptor.h
dell-wmi-led.c
dell-wmi-privacy.c platform/x86: dell-privacy: Only register SW_CAMERA_LENS_COVER if present 2023-01-12 19:40:19 +01:00
dell-wmi-privacy.h platform/x86: dell-privacy: Add support for Dell hardware privacy 2021-06-16 17:47:51 +02:00
dell_rbu.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00