platform/x86: asus-wmi: add support for vivobook fan profiles
authorMohamed Ghanmi <mohamed.ghanmi@supcom.tn>
Sun, 9 Jun 2024 14:48:49 +0000 (15:48 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 1 Aug 2024 14:02:13 +0000 (16:02 +0200)
commitbcbfcebda2cbc6a10a347d726e4a4f69e43a864e
tree970ba2cbfa9d264487a38f5a5e14aedfcf549bb3
parent8400291e289ee6b2bf9779ff1c83a291501f017b
platform/x86: asus-wmi: add support for vivobook fan profiles

Add support for vivobook fan profiles wmi call on the ASUS VIVOBOOK
to adjust power limits.

These fan profiles have a different device id than the ROG series
and different order. This reorders the existing modes.

As part of keeping the patch clean the throttle_thermal_policy_available
boolean stored in the driver struct is removed and
throttle_thermal_policy_dev is used in place (as on init it is zeroed).

Co-developed-by: Luke D. Jones <luke@ljones.dev>
Signed-off-by: Luke D. Jones <luke@ljones.dev>
Signed-off-by: Mohamed Ghanmi <mohamed.ghanmi@supcom.tn>
Reviewed-by: Luke D. Jones <luke@ljones.dev>
Link: https://lore.kernel.org/r/20240609144849.2532-2-mohamed.ghanmi@supcom.tn
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-wmi.c
include/linux/platform_data/x86/asus-wmi.h