summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-lg-g15.c
diff options
context:
space:
mode:
authorFabian Schindlatz <fabian.schindlatz@fau.de>2020-04-13 19:46:28 +0300
committerJiri Kosina <jkosina@suse.cz>2020-04-14 12:15:36 +0300
commitb1bd0f75288f60e8d142a1b3e979ed0192c04931 (patch)
treeb9cbbabeaca1398851b60867b79a72aabfbc2413 /drivers/hid/hid-lg-g15.c
parentf9e82295eec141a0569649d400d249333d74aa91 (diff)
downloadlinux-b1bd0f75288f60e8d142a1b3e979ed0192c04931.tar.xz
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 <fabian.schindlatz@fau.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg-g15.c')
-rw-r--r--drivers/hid/hid-lg-g15.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hid/hid-lg-g15.c b/drivers/hid/hid-lg-g15.c
index ad4b5412a9f4..ef0cbcd7540d 100644
--- a/drivers/hid/hid-lg-g15.c
+++ b/drivers/hid/hid-lg-g15.c
@@ -872,6 +872,10 @@ error_hw_stop:
}
static const struct hid_device_id lg_g15_devices[] = {
+ /* The G11 is a G15 without the LCD, treat it as a G15 */
+ { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
+ USB_DEVICE_ID_LOGITECH_G11),
+ .driver_data = LG_G15 },
{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
USB_DEVICE_ID_LOGITECH_G15_LCD),
.driver_data = LG_G15 },