[PATCH v2 0/1] platform/x86: asus-wmi: add support for vivobook fan profiles

From: Mohamed Ghanmi
Date: Thu Apr 18 2024 - 17:48:00 EST


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 and adds a new
full speed mode available on these laptops.

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).

Changelog:
- V1
- Fixes grammar in description
- reorders macros
- adds throttle_thermal_policy_max_mode() helper function
- V2
- removes unnecessary braces in throttle_thermal_policy_max_mode()

drivers/platform/x86/asus-wmi.c | 93 ++++++++++++----------
include/linux/platform_data/x86/asus-wmi.h | 1 +
2 files changed, 51 insertions(+), 43 deletions(-)

--
2.44.0