From: Justin Vargas <justinyvar@gmail.com>
To: ilpo.jarvinen@linux.intel.com, hansg@kernel.org, jlee@suse.com,
corentin.chary@gmail.com, luke@ljones.dev,
denis.benato@linux.dev
Cc: W_Armin@gmx.de, krishna.chomal108@gmail.com,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org,
Justin Vargas <justinyvar@gmail.com>
Subject: [PATCH v2 2/3] platform/x86: asus-wmi: Remove unused platform_profile_support member
Date: Sun, 20 Sep 2026 22:17:19 -0400 [thread overview]
Message-ID: <20260921021720.5976-3-justinyvar@gmail.com> (raw)
In-Reply-To: <20260921021720.5976-1-justinyvar@gmail.com>
The platform_profile_support member of struct asus_wmi is assigned
during platform profile setup but is never read anywhere in the driver.
Remove it.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Justin Vargas <justinyvar@gmail.com>
---
drivers/platform/x86/asus-wmi.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 711f59c1aa6..3e630312139 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -320,7 +320,6 @@ struct asus_wmi {
struct fan_curve_data custom_fan_curves[3];
struct device *ppdev;
- bool platform_profile_support;
// The RSOC controls the maximum charging percentage.
bool battery_rsoc_available;
@@ -4332,7 +4331,6 @@ static int platform_profile_setup(struct asus_wmi *asus)
return PTR_ERR(asus->ppdev);
}
- asus->platform_profile_support = true;
return 0;
}
--
2.47.3
next prev parent reply other threads:[~2026-09-21 2:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 2:17 [PATCH v2 0/3] platform/x86: Remove unused platform_profile_support variables Justin Vargas
2026-09-21 2:17 ` [PATCH v2 1/3] platform/x86: acer-wmi: Remove unused platform_profile_support variable Justin Vargas
2026-09-21 2:17 ` Justin Vargas [this message]
2026-09-21 2:20 ` [PATCH v2 3/3] platform/x86: hp-wmi: " Justin Vargas
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=20260921021720.5976-3-justinyvar@gmail.com \
--to=justinyvar@gmail.com \
--cc=W_Armin@gmx.de \
--cc=corentin.chary@gmail.com \
--cc=denis.benato@linux.dev \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jlee@suse.com \
--cc=krishna.chomal108@gmail.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
all inboxes | Powered by JetHome®