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

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: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20211026190835.10697-2-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Mario Limonciello and committed by
Hans de Goede
d411e370 9587f392

+6 -6
+6 -6
drivers/platform/x86/hp-wmi.c
··· 1061 1061 sizeof(thermal_profile), 0); 1062 1062 } 1063 1063 1064 - static int platform_profile_get(struct platform_profile_handler *pprof, 1065 - enum platform_profile_option *profile) 1064 + static int hp_wmi_platform_profile_get(struct platform_profile_handler *pprof, 1065 + enum platform_profile_option *profile) 1066 1066 { 1067 1067 int tp; 1068 1068 ··· 1087 1087 return 0; 1088 1088 } 1089 1089 1090 - static int platform_profile_set(struct platform_profile_handler *pprof, 1091 - enum platform_profile_option profile) 1090 + static int hp_wmi_platform_profile_set(struct platform_profile_handler *pprof, 1091 + enum platform_profile_option profile) 1092 1092 { 1093 1093 int err, tp; 1094 1094 ··· 1147 1147 if (err) 1148 1148 return err; 1149 1149 1150 - platform_profile_handler.profile_get = platform_profile_get; 1151 - platform_profile_handler.profile_set = platform_profile_set; 1150 + platform_profile_handler.profile_get = hp_wmi_platform_profile_get; 1151 + platform_profile_handler.profile_set = hp_wmi_platform_profile_set; 1152 1152 } 1153 1153 1154 1154 set_bit(PLATFORM_PROFILE_COOL, platform_profile_handler.choices);