Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86: hp-wmi: rename "thermal policy" to "thermal profile"

rename "thermal policy" with the more appropriate term "thermal profile"

Signed-off-by: Elia Devito <eliadevito@gmail.com>
Link: https://lore.kernel.org/r/20210221210256.68198-1-eliadevito@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Elia Devito and committed by
Hans de Goede
d7da7534 b81c6ce9

+6 -6
+6 -6
drivers/platform/x86/hp-wmi.c
··· 85 85 HPWMI_FEATURE2_QUERY = 0x0d, 86 86 HPWMI_WIRELESS2_QUERY = 0x1b, 87 87 HPWMI_POSTCODEERROR_QUERY = 0x2a, 88 - HPWMI_THERMAL_POLICY_QUERY = 0x4c, 88 + HPWMI_THERMAL_PROFILE_QUERY = 0x4c, 89 89 }; 90 90 91 91 enum hp_wmi_command { ··· 869 869 return err; 870 870 } 871 871 872 - static int thermal_policy_setup(struct platform_device *device) 872 + static int thermal_profile_setup(struct platform_device *device) 873 873 { 874 874 int err, tp; 875 875 876 - tp = hp_wmi_read_int(HPWMI_THERMAL_POLICY_QUERY); 876 + tp = hp_wmi_read_int(HPWMI_THERMAL_PROFILE_QUERY); 877 877 if (tp < 0) 878 878 return tp; 879 879 880 880 /* 881 - * call thermal policy write command to ensure that the firmware correctly 881 + * call thermal profile write command to ensure that the firmware correctly 882 882 * sets the OEM variables for the DPTF 883 883 */ 884 - err = hp_wmi_perform_query(HPWMI_THERMAL_POLICY_QUERY, HPWMI_WRITE, &tp, 884 + err = hp_wmi_perform_query(HPWMI_THERMAL_PROFILE_QUERY, HPWMI_WRITE, &tp, 885 885 sizeof(tp), 0); 886 886 if (err) 887 887 return err; ··· 900 900 if (hp_wmi_rfkill_setup(device)) 901 901 hp_wmi_rfkill2_setup(device); 902 902 903 - thermal_policy_setup(device); 903 + thermal_profile_setup(device); 904 904 905 905 return 0; 906 906 }