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

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86: alienware-wmi-wmax: Modify supported_thermal_profiles[]

Rename supported_thermal_profiles[] -> supported_profiles[] and change
it's type to u8 because it stores AWCC thermal IDs.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Link: https://lore.kernel.org/r/20250329-hwm-v7-4-a14ea39d8a94@gmail.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Kurt Borja and committed by
Ilpo Järvinen
77bb2ec5 45983d19

+4 -5
+4 -5
drivers/platform/x86/dell/alienware-wmi-wmax.c
··· 214 214 struct awcc_priv { 215 215 struct wmi_device *wdev; 216 216 struct device *ppdev; 217 - enum awcc_thermal_profile supported_thermal_profiles[PLATFORM_PROFILE_LAST]; 217 + u8 supported_profiles[PLATFORM_PROFILE_LAST]; 218 218 }; 219 219 220 220 static const enum platform_profile_option awcc_mode_to_platform_profile[AWCC_PROFILE_LAST] = { ··· 625 625 } 626 626 } 627 627 628 - return awcc_op_activate_profile(priv->wdev, 629 - priv->supported_thermal_profiles[profile]); 628 + return awcc_op_activate_profile(priv->wdev, priv->supported_profiles[profile]); 630 629 } 631 630 632 631 static int awcc_platform_profile_probe(void *drvdata, unsigned long *choices) ··· 659 660 660 661 mode = FIELD_GET(AWCC_THERMAL_MODE_MASK, id); 661 662 profile = awcc_mode_to_platform_profile[mode]; 662 - priv->supported_thermal_profiles[profile] = id; 663 + priv->supported_profiles[profile] = id; 663 664 664 665 set_bit(profile, choices); 665 666 } ··· 668 669 return -ENODEV; 669 670 670 671 if (awcc->gmode) { 671 - priv->supported_thermal_profiles[PLATFORM_PROFILE_PERFORMANCE] = 672 + priv->supported_profiles[PLATFORM_PROFILE_PERFORMANCE] = 672 673 AWCC_THERMAL_MODE_GMODE; 673 674 674 675 set_bit(PLATFORM_PROFILE_PERFORMANCE, choices);