Skip to content

Commit

Permalink
platform/x86: hp-wmi: rename "thermal policy" to "thermal profile"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Elia Devito authored and Hans de Goede committed Mar 8, 2021
1 parent b81c6ce commit d7da753
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/platform/x86/hp-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ enum hp_wmi_commandtype {
HPWMI_FEATURE2_QUERY = 0x0d,
HPWMI_WIRELESS2_QUERY = 0x1b,
HPWMI_POSTCODEERROR_QUERY = 0x2a,
HPWMI_THERMAL_POLICY_QUERY = 0x4c,
HPWMI_THERMAL_PROFILE_QUERY = 0x4c,
};

enum hp_wmi_command {
Expand Down Expand Up @@ -869,19 +869,19 @@ static int __init hp_wmi_rfkill2_setup(struct platform_device *device)
return err;
}

static int thermal_policy_setup(struct platform_device *device)
static int thermal_profile_setup(struct platform_device *device)
{
int err, tp;

tp = hp_wmi_read_int(HPWMI_THERMAL_POLICY_QUERY);
tp = hp_wmi_read_int(HPWMI_THERMAL_PROFILE_QUERY);
if (tp < 0)
return tp;

/*
* call thermal policy write command to ensure that the firmware correctly
* call thermal profile write command to ensure that the firmware correctly
* sets the OEM variables for the DPTF
*/
err = hp_wmi_perform_query(HPWMI_THERMAL_POLICY_QUERY, HPWMI_WRITE, &tp,
err = hp_wmi_perform_query(HPWMI_THERMAL_PROFILE_QUERY, HPWMI_WRITE, &tp,
sizeof(tp), 0);
if (err)
return err;
Expand All @@ -900,7 +900,7 @@ static int __init hp_wmi_bios_setup(struct platform_device *device)
if (hp_wmi_rfkill_setup(device))
hp_wmi_rfkill2_setup(device);

thermal_policy_setup(device);
thermal_profile_setup(device);

return 0;
}
Expand Down

0 comments on commit d7da753

Please sign in to comment.