diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2021-10-26 14:08:34 -0500 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-10-27 16:07:34 +0200 |
commit | 3aa539a584f6f65fc4e471274c8c8b443331eb52 (patch) | |
tree | 50a34c9fc19b16acd3a0b333a0e2bae7ca9f06e3 /drivers/platform | |
parent | d411e370978fcbf2135a51b43e9acabc879b304b (diff) |
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: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20211026190835.10697-3-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index e14fb5fa7324..8f067ac4e952 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c @@ -2169,8 +2169,8 @@ static ssize_t throttle_thermal_policy_store(struct device *dev, static DEVICE_ATTR_RW(throttle_thermal_policy); /* Platform profile ***********************************************************/ -static int platform_profile_get(struct platform_profile_handler *pprof, - enum platform_profile_option *profile) +static int asus_wmi_platform_profile_get(struct platform_profile_handler *pprof, + enum platform_profile_option *profile) { struct asus_wmi *asus; int tp; @@ -2196,8 +2196,8 @@ static int platform_profile_get(struct platform_profile_handler *pprof, return 0; } -static int platform_profile_set(struct platform_profile_handler *pprof, - enum platform_profile_option profile) +static int asus_wmi_platform_profile_set(struct platform_profile_handler *pprof, + enum platform_profile_option profile) { struct asus_wmi *asus; int tp; @@ -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"); - asus->platform_profile_handler.profile_get = platform_profile_get; - asus->platform_profile_handler.profile_set = platform_profile_set; + asus->platform_profile_handler.profile_get = asus_wmi_platform_profile_get; + 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_BALANCED, |