]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
HID: alps: Add AUI1657 device ID
authorArtem Borisov <dedsa2002@gmail.com>
Sun, 5 Apr 2020 23:55:15 +0000 (03:55 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 15:48:06 +0000 (17:48 +0200)
[ Upstream commit 640e403b1fd24e7f31ac6f29f0b6a21d285ed729 ]

This device is used on Lenovo V130-15IKB variants and uses
the same registers as U1.

Signed-off-by: Artem Borisov <dedsa2002@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-alps.c
drivers/hid/hid-ids.h

index fa704153cb00d5f7fa7d0185acd1f953fdd37754..c2a2bd5288906a1ff3df34b3617ba947d834cefa 100644 (file)
@@ -802,6 +802,7 @@ static int alps_probe(struct hid_device *hdev, const struct hid_device_id *id)
                break;
        case HID_DEVICE_ID_ALPS_U1_DUAL:
        case HID_DEVICE_ID_ALPS_U1:
+       case HID_DEVICE_ID_ALPS_1657:
                data->dev_type = U1;
                break;
        default:
index 40697af0ca3581396a7545a698a2d96f9eba8da1..7d769ca864a7f99f7b46e6fabb3bd2ec4fd63752 100644 (file)
@@ -81,7 +81,7 @@
 #define HID_DEVICE_ID_ALPS_U1          0x1215
 #define HID_DEVICE_ID_ALPS_T4_BTNLESS  0x120C
 #define HID_DEVICE_ID_ALPS_1222                0x1222
-
+#define HID_DEVICE_ID_ALPS_1657         0x121E
 
 #define USB_VENDOR_ID_AMI              0x046b
 #define USB_DEVICE_ID_AMI_VIRT_KEYBOARD_AND_MOUSE      0xff10