aboutsummaryrefslogtreecommitdiff
path: root/hid-tminit.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2020-11-03 14:07:59 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2020-11-03 14:07:59 +0200
commit43569215b2fd19a0d83fee9cf19c259bd038cac9 (patch)
tree2e6855286b820c16f5080de9890d53d1b483a08b /hid-tminit.c
parent6a7ab83543e4f4e10740015ecdcc2c44d51fdca8 (diff)
downloadhid-tmff2-43569215b2fd19a0d83fee9cf19c259bd038cac9.tar.gz
hid-tmff2-43569215b2fd19a0d83fee9cf19c259bd038cac9.zip
Small changes to closer imitate the Windows driver
Diffstat (limited to 'hid-tminit.c')
-rw-r--r--hid-tminit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/hid-tminit.c b/hid-tminit.c
index 73c1283..25caf51 100644
--- a/hid-tminit.c
+++ b/hid-tminit.c
@@ -39,6 +39,7 @@ static void tminit_interrupts(struct hid_device *hdev){
kzfree(send_buf);
}
+/*
void tminit_controls(struct hid_device *hdev){
int i = 0, ret;
struct usb_host_endpoint *ep;
@@ -63,12 +64,11 @@ void tminit_controls(struct hid_device *hdev){
hid_err(hdev, "failed with the ctrl: %i", ret);
}
- // Hello?
ret = usb_control_msg(usbdev,
usb_rcvctrlpipe(usbdev, 0),
73,
- 0x41,
- 0x40,
+ 0xc1,
+ 0,
0,
transfer,
16,
@@ -118,6 +118,7 @@ void tminit_controls(struct hid_device *hdev){
hid_err(hdev, "failed with the ctrl: %i", ret);
}
}
+*/
int tminit(struct hid_device *hdev){
struct urb *urb;
@@ -127,7 +128,7 @@ int tminit(struct hid_device *hdev){
struct usb_device *usbdev = interface_to_usbdev(usbif);
int ret;
- tminit_controls(hdev);
+ //tminit_controls(hdev);
tminit_interrupts(hdev);