From: Mohamed Ghanmi <mohamed.ghanmi@supcom.tn>
To: hdegoede@redhat.com
Cc: corentin.chary@gmail.com, ilpo.jarvinen@linux.intel.com,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, "Luke D . Jones" <luke@ljones.dev>,
Mohamed Ghanmi <mohamed.ghanmi@supcom.tn>
Subject: [PATCH v2 0/1] platform/x86: asus-wmi: add support for vivobook fan profiles
Date: Thu, 18 Apr 2024 22:47:24 +0100 [thread overview]
Message-ID: <20240418214727.10658-1-mohamed.ghanmi@supcom.tn> (raw)
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
next reply other threads:[~2024-04-18 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-18 21:47 Mohamed Ghanmi [this message]
2024-04-18 21:47 ` [PATCH v2 1/1] platform/x86: asus-wmi: add support for vivobook fan profiles Mohamed Ghanmi
2024-04-21 3:32 ` kernel test robot
2024-04-21 3:43 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240418214727.10658-1-mohamed.ghanmi@supcom.tn \
--to=mohamed.ghanmi@supcom.tn \
--cc=corentin.chary@gmail.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luke@ljones.dev \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).