mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] HID: asus: Check CONFIG_PLATFORM_PROFILE for the profile key
@ 2026-11-24 15:35 Sasha Levin
  0 siblings, 0 replies; only message in thread
From: Sasha Levin @ 2026-11-24 15:35 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires
  Cc: Rafael J. Wysocki, Joshua Leivenzon, Mark Brown, linux-input,
	linux-pm, linux-kernel

Commit 699041135f75 ("platform profile: Extract the core from ACPI")
renamed ACPI_PLATFORM_PROFILE to PLATFORM_PROFILE. hid-asus.c still checks
IS_REACHABLE(CONFIG_ACPI_PLATFORM_PROFILE), which is now always false,
so the Zenbook Duo profile key no longer cycles the platform profile.

Check the new symbol.

Link: https://lore.kernel.org/all/20261120194507.593601-1-sashal@kernel.org/
Signed-off-by: Sasha Levin <sashal@kernel.org>
---

This needs Rafael's immutable acpi-platform-profile branch in the hid
tree first:

  git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git acpi-platform-profile

With the hid and pm trees both merged, hid-asus.o calls
platform_profile_cycle() again with this patch; without it the call is
compiled out.

 drivers/hid/hid-asus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
index 342a97df44c89..0b9cb5e92dcd6 100644
--- a/drivers/hid/hid-asus.c
+++ b/drivers/hid/hid-asus.c
@@ -438,7 +438,7 @@ static int asus_platform_profile_cycle(struct asus_drvdata *drvdata)
 	struct asus_worker *worker = drvdata->worker;
 	struct asus_work_action *action, *pending;
 
-	if (!IS_REACHABLE(CONFIG_ACPI_PLATFORM_PROFILE))
+	if (!IS_REACHABLE(CONFIG_PLATFORM_PROFILE))
 		return 0;
 
 	guard(spinlock_irqsave)(&worker->lock);
@@ -870,7 +870,7 @@ static void asus_work(struct work_struct *work)
 		asus_kbd_wmi_fan(worker->hdev, &action->data.fan_hid_data);
 		break;
 	case PLATFORM_PROFILE_CYCLE:
-		if (!IS_REACHABLE(CONFIG_ACPI_PLATFORM_PROFILE))
+		if (!IS_REACHABLE(CONFIG_PLATFORM_PROFILE))
 			break;
 		ret = platform_profile_cycle();
 		if (ret)
-- 
2.53.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 15:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 15:35 [PATCH] HID: asus: Check CONFIG_PLATFORM_PROFILE for the profile key Sasha Levin

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®