Skip to content

Commit dbf56d2

Browse files
crizanJiri Kosina
authored andcommitted
HID: topre: Add support for 87 keys Realforce R2
The tenkeyless version of the Realforce R2 has the same issue of the full size one, the report fixup is needed to make n-key rollover work instead of 6 key rollover Signed-off-by: Alessandro Manca <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 50c6b97 commit dbf56d2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

drivers/hid/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ config HID_TOPRE
11221122
tristate "Topre REALFORCE keyboards"
11231123
depends on HID
11241124
help
1125-
Say Y for N-key rollover support on Topre REALFORCE R2 108 key keyboards.
1125+
Say Y for N-key rollover support on Topre REALFORCE R2 108/87 key keyboards.
11261126

11271127
config HID_THINGM
11281128
tristate "ThingM blink(1) USB RGB LED"

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@
12521252

12531253
#define USB_VENDOR_ID_TOPRE 0x0853
12541254
#define USB_DEVICE_ID_TOPRE_REALFORCE_R2_108 0x0148
1255+
#define USB_DEVICE_ID_TOPRE_REALFORCE_R2_87 0x0146
12551256

12561257
#define USB_VENDOR_ID_TOPSEED 0x0766
12571258
#define USB_DEVICE_ID_TOPSEED_CYBERLINK 0x0204

drivers/hid/hid-topre.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ static __u8 *topre_report_fixup(struct hid_device *hdev, __u8 *rdesc,
3636
static const struct hid_device_id topre_id_table[] = {
3737
{ HID_USB_DEVICE(USB_VENDOR_ID_TOPRE,
3838
USB_DEVICE_ID_TOPRE_REALFORCE_R2_108) },
39+
{ HID_USB_DEVICE(USB_VENDOR_ID_TOPRE,
40+
USB_DEVICE_ID_TOPRE_REALFORCE_R2_87) },
3941
{ }
4042
};
4143
MODULE_DEVICE_TABLE(hid, topre_id_table);

0 commit comments

Comments
 (0)