platform-x86-asus-wmi-switch-to-use-linux-unitsh-helpers.patch removed from -mm tree
The patch titled
Subject: platform/x86: asus-wmi: switch to use <linux/units.h> helpers
has been removed from the -mm tree. Its filename was
platform-x86-asus-wmi-switch-to-use-linux-unitsh-helpers.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Akinobu Mita <[email protected]>
Subject: platform/x86: asus-wmi: switch to use <linux/units.h> helpers
The asus-wmi driver doesn't implement the thermal device functionality directly, so including <linux/thermal.h> just for DECI_KELVIN_TO_CELSIUS() is a bit odd.
This switches the asus-wmi driver to use deci_kelvin_to_millicelsius() in <linux/units.h>.
The format string is changed from %d to %ld due to function returned type.
---
drivers/platform/x86/asus-wmi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/platform/x86/asus-wmi.c renamed from drivers/platform/x86/asus-wmi.c~platform-x86-asus-wmi-switch-to-use-linux-unitsh-helpers +1 -2
@@ -33,9 +33,9 @@#include <linux/seq_file.h> #include <linux/platform_data/x86/asus-wmi.h> #include <linux/platform_device.h> -#include <linux/thermal.h> #include <linux/acpi.h> #include <linux/dmi.h> +#include <linux/units.h> #include <acpi/battery.h> #include <acpi/video.h>
@@ -1514,9 +1514,8 @@ static ssize_t asus_hwmon_temp1(struct dif (err <0 )return err; - value =DECI_KELVIN_TO_CELSIUS ((value &0xFFFF )) *1000 ;