From e29c7dfa1591bd323edb7f3be8e74eecd41ad082 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 29 Nov 2026 13:01:40 +0000 Subject: [PATCH] HID: asus: drop duplicate GX651AR 0x9c mapping linux-next maps ASUS vendor usage 0x9c to KEY_F19 as the Zenbook Duo screen-swap key. Fork commit 639536becf8e ("HID: asus: map the tent mode key on ROG Zephyrus Duo GX651AR") adds that same case again after the ROG Ally keys, so the replayed tree fails to build: drivers/hid/hid-asus.c:1400:17: error: duplicate case value drivers/hid/hid-asus.c:1395:17: note: previously used here Both arms map 0x9c to KEY_F19. Keep the upstream case and drop the fork one. The other GX651AR changes stay: the USB and Bluetooth device IDs and HID_QUIRK_HIDINPUT_FORCE. The sync workflow replays every fork commit, including 639536becf8e, and then this one. The tent-mode line is added and removed again on each sync, and the pushed tree keeps a single 0x9c case. Prepared with an AI coding assistant (Cursor Grok 4.7) from the failing sync log and that fork commit. Fixes: 639536becf8e ("HID: asus: map the tent mode key on ROG Zephyrus Duo GX651AR") Co-authored-by: Marco Scardovi --- drivers/hid/hid-asus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c index 88097798fa19c1..70990a2304d179 100644 --- a/drivers/hid/hid-asus.c +++ b/drivers/hid/hid-asus.c @@ -1319,7 +1319,6 @@ static int asus_input_mapping(struct hid_device *hdev, case 0xa6: asus_map_key_clear(KEY_F16); break; /* ROG Ally QAM button */ case 0xa7: asus_map_key_clear(KEY_F17); break; /* ROG Ally ROG long-press */ case 0xa8: asus_map_key_clear(KEY_F18); break; /* ROG Ally ROG long-press-release */ - case 0x9c: asus_map_key_clear(KEY_F19); break; /* Zephyrus Duo tent mode */ default: /* ASUS lazily declares 256 usages, ignore the rest,