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

platform/x86: asus-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-3-mario.limonciello@amd.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent d411e370
...@@ -2169,8 +2169,8 @@ static ssize_t throttle_thermal_policy_store(struct device *dev, ...@@ -2169,8 +2169,8 @@ static ssize_t throttle_thermal_policy_store(struct device *dev,
static DEVICE_ATTR_RW(throttle_thermal_policy); static DEVICE_ATTR_RW(throttle_thermal_policy);
/* Platform profile ***********************************************************/ /* Platform profile ***********************************************************/
static int platform_profile_get(struct platform_profile_handler *pprof, static int asus_wmi_platform_profile_get(struct platform_profile_handler *pprof,
enum platform_profile_option *profile) enum platform_profile_option *profile)
{ {
struct asus_wmi *asus; struct asus_wmi *asus;
int tp; int tp;
...@@ -2196,8 +2196,8 @@ static int platform_profile_get(struct platform_profile_handler *pprof, ...@@ -2196,8 +2196,8 @@ 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 asus_wmi_platform_profile_set(struct platform_profile_handler *pprof,
enum platform_profile_option profile) enum platform_profile_option profile)
{ {
struct asus_wmi *asus; struct asus_wmi *asus;
int tp; int tp;
...@@ -2236,8 +2236,8 @@ static int platform_profile_setup(struct asus_wmi *asus) ...@@ -2236,8 +2236,8 @@ static int platform_profile_setup(struct asus_wmi *asus)
dev_info(dev, "Using throttle_thermal_policy for platform_profile support\n"); dev_info(dev, "Using throttle_thermal_policy for platform_profile support\n");
asus->platform_profile_handler.profile_get = platform_profile_get; asus->platform_profile_handler.profile_get = asus_wmi_platform_profile_get;
asus->platform_profile_handler.profile_set = platform_profile_set; asus->platform_profile_handler.profile_set = asus_wmi_platform_profile_set;
set_bit(PLATFORM_PROFILE_QUIET, asus->platform_profile_handler.choices); set_bit(PLATFORM_PROFILE_QUIET, asus->platform_profile_handler.choices);
set_bit(PLATFORM_PROFILE_BALANCED, set_bit(PLATFORM_PROFILE_BALANCED,
......
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