Commit d411e370 authored by Mario Limonciello's avatar Mario Limonciello Committed by Hans de Goede

platform/x86: hp-wmi: rename platform_profile_* function symbols

An upcoming change to platform profiles will export `platform_profile_get`
as a symbol that can be used by other drivers. Avoid the collision.
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20211026190835.10697-2-mario.limonciello@amd.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 9587f392
...@@ -1061,7 +1061,7 @@ static int thermal_profile_set(int thermal_profile) ...@@ -1061,7 +1061,7 @@ static int thermal_profile_set(int thermal_profile)
sizeof(thermal_profile), 0); sizeof(thermal_profile), 0);
} }
static int platform_profile_get(struct platform_profile_handler *pprof, static int hp_wmi_platform_profile_get(struct platform_profile_handler *pprof,
enum platform_profile_option *profile) enum platform_profile_option *profile)
{ {
int tp; int tp;
...@@ -1087,7 +1087,7 @@ static int platform_profile_get(struct platform_profile_handler *pprof, ...@@ -1087,7 +1087,7 @@ static int platform_profile_get(struct platform_profile_handler *pprof,
return 0; return 0;
} }
static int platform_profile_set(struct platform_profile_handler *pprof, static int hp_wmi_platform_profile_set(struct platform_profile_handler *pprof,
enum platform_profile_option profile) enum platform_profile_option profile)
{ {
int err, tp; int err, tp;
...@@ -1147,8 +1147,8 @@ static int thermal_profile_setup(void) ...@@ -1147,8 +1147,8 @@ static int thermal_profile_setup(void)
if (err) if (err)
return err; return err;
platform_profile_handler.profile_get = platform_profile_get; platform_profile_handler.profile_get = hp_wmi_platform_profile_get;
platform_profile_handler.profile_set = platform_profile_set; platform_profile_handler.profile_set = hp_wmi_platform_profile_set;
} }
set_bit(PLATFORM_PROFILE_COOL, platform_profile_handler.choices); set_bit(PLATFORM_PROFILE_COOL, platform_profile_handler.choices);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment