/* * VID/PID are probably "borrowed", so keep them locally and * do not populate hid-ids.h with those.
*/ #define USB_VENDOR_ID_VRC2 (0x07c0) #define USB_DEVICE_ID_VRC2 (0x1125)
staticint vrc2_probe(struct hid_device *hdev, conststruct hid_device_id *id)
{ int ret;
/* * The device gives us 2 separate USB endpoints. * One of those (the one with report descriptor size of 23) is just bogus so ignore it
*/ if (hdev->dev_rsize == 23) return -ENODEV;
ret = hid_parse(hdev); if (ret) {
hid_err(hdev, "parse failed\n"); return ret;
}
ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); if (ret) {
hid_err(hdev, "hw start failed\n"); return ret;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.