Commit f3e82521 authored by Felipe Balbi's avatar Felipe Balbi Committed by Jiri Kosina
Browse files

HID: core: add TransducerSerialNumber2

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



Signed-off-by: default avatarFelipe Balbi <felipe.balbi@microsoft.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 83ec9169
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"},
+1 −0
Original line number Diff line number Diff line
@@ -871,6 +871,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;