Skip to content

Commit b1bd0f7

Browse files
Fabian SchindlatzJiri Kosina
authored andcommitted
HID: logitech: Add support for Logitech G11 extra keys
The Logitech G11 keyboard is a cheap variant of the G15 without the LCD screen. It uses the same layout for its extra and macro keys (G1 - G18, M1-M3, MR) and - from the input subsystem's perspective - behaves just like the G15, so we can treat it as such. Tested it with my own keyboard. Signed-off-by: Fabian Schindlatz <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent f9e8229 commit b1bd0f7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@
760760
#define USB_DEVICE_ID_LOGITECH_RUMBLEPAD2 0xc218
761761
#define USB_DEVICE_ID_LOGITECH_RUMBLEPAD2_2 0xc219
762762
#define USB_DEVICE_ID_LOGITECH_G15_LCD 0xc222
763+
#define USB_DEVICE_ID_LOGITECH_G11 0xc225
763764
#define USB_DEVICE_ID_LOGITECH_G15_V2_LCD 0xc227
764765
#define USB_DEVICE_ID_LOGITECH_G510 0xc22d
765766
#define USB_DEVICE_ID_LOGITECH_G510_USB_AUDIO 0xc22e

drivers/hid/hid-lg-g15.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,10 @@ static int lg_g15_probe(struct hid_device *hdev, const struct hid_device_id *id)
872872
}
873873

874874
static const struct hid_device_id lg_g15_devices[] = {
875+
/* The G11 is a G15 without the LCD, treat it as a G15 */
876+
{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
877+
USB_DEVICE_ID_LOGITECH_G11),
878+
.driver_data = LG_G15 },
875879
{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
876880
USB_DEVICE_ID_LOGITECH_G15_LCD),
877881
.driver_data = LG_G15 },

0 commit comments

Comments
 (0)