Skip to contentSkip to conversation

HID: core: add TransducerSerialNumber2

PATCH Applied Felipe Balbi 2 participants 2 messages Aug 20, 2021 – Sep 15, 2021 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: core: add TransducerSerialNumber2

From: Felipe Balbi <[email protected]>

A recent request for change to the HID spec got approved adding support for another 4-bytes to the Transducer Serial Number. This commit adds support for the new usage.

https://www.usb.org/sites/default/files/hutrr103-transducerserialnumbermoresignificantbits_0.pdf

---
 drivers/hid/hid-debug.c | 1 +
 drivers/hid/hid-input.c | 1 +
 2 files changed, 2 insertions(+)
drivers/hid/hid-debug.c +1 -0
index fa57d05badf7..e6f18a181eb8 100644
@@ -160,6 +160,7 @@ static const struct hid_usage_entry hid_usage_table[] = {
     {0, 0x59, "ButtonType"},
     {0, 0x5A, "SecondaryBarrelSwitch"},
     {0, 0x5B, "TransducerSerialNumber"},
+    {0, 0x6e, "TransducerSerialNumber2"},
   { 15, 0, "PhysicalInterfaceDevice" },
     {0, 0x00, "Undefined"},
     {0, 0x01, "Physical_Interface_Device"},
drivers/hid/hid-input.c +1 -0
index 4286a51f7f16..82089b59609f 100644
@@ -873,6 +873,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
 			break;
 
 		case 0x5b: /* TransducerSerialNumber */
+		case 0x6e: /* TransducerSerialNumber2 */
 			usage->type = EV_MSC;
 			usage->code = MSC_SERIAL;
 			bit = input->mscbit;
Signature · 1 line
2.32.0
maintainer Applied
#1 lore raw
Quoted 9 lines · Felipe Balbi

From: Felipe Balbi <[email protected]>

A recent request for change to the HID spec got approved adding support for another 4-bytes to the Transducer Serial Number. This commit adds support for the new usage.

https://www.usb.org/sites/default/files/hutrr103-transducerserialnumbermoresignificantbits_0.pdf

Applied, thanks Felipe.

Signature · 2 lines
Jiri Kosina
SUSE Labs