HID: quirks: add support for Legion Go dual dinput modes
authorAntheas Kapenekakis <lkml@antheas.dev>
Sun, 3 Aug 2025 16:02:53 +0000 (18:02 +0200)
committerJiri Kosina <jkosina@suse.com>
Tue, 26 Aug 2025 10:48:58 +0000 (12:48 +0200)
commit1f3214aae9f49faf495f3836216afbc6c5400b2e
treeb98d3644113c9385050183ab8746be0dc8411337
parent832e5777143e799a97e8f9b96f002a90f06ba548
HID: quirks: add support for Legion Go dual dinput modes

The Legion Go features detachable controllers which support a dual
dinput mode. In this mode, the controllers appear under a single HID
device with two applications.

Currently, both controllers appear under the same event device, causing
their controls to be mixed up. This patch separates the two so that
they can be used independently.

In addition, the latest firmware update for the Legion Go swaps the IDs
to the ones used by the Legion Go 2, so add those IDs as well.

[jkosina@suse.com: improved shortlog]
Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c