mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/1] platform/x86: asus-wmi: add support for vivobook fan profiles
@ 2024-04-21 19:43 Mohamed Ghanmi
  2024-04-21 19:43 ` [PATCH v3 1/1] " Mohamed Ghanmi
  0 siblings, 1 reply; 9+ messages in thread
From: Mohamed Ghanmi @ 2024-04-21 19:43 UTC (permalink / raw)
  To: hdegoede
  Cc: corentin.chary, ilpo.jarvinen, platform-driver-x86, linux-kernel,
	Luke D . Jones, Mohamed Ghanmi

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()
- V3
  - fixes a use before declaration compilation error caused by reordering of local
    variables in throttle_thermal_policy_store() function

 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-06-21 11:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-21 19:43 [PATCH v3 0/1] platform/x86: asus-wmi: add support for vivobook fan profiles Mohamed Ghanmi
2024-04-21 19:43 ` [PATCH v3 1/1] " Mohamed Ghanmi
2024-04-29 10:20   ` Hans de Goede
2024-06-03  5:19     ` Luke Jones
2024-06-03 10:29       ` Ilpo Järvinen
2024-06-05  7:43         ` Luke Jones
2024-06-21  9:43           ` Devin Bayer
2024-06-21 10:26             ` Luke Jones
2024-06-21 11:30               ` Devin Bayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®