Lines Matching refs:dj_hiddev
707 struct hid_device *dj_hiddev; in logi_dj_recv_add_djhid_device() local
724 dj_hiddev = hid_allocate_device(); in logi_dj_recv_add_djhid_device()
725 if (IS_ERR(dj_hiddev)) { in logi_dj_recv_add_djhid_device()
730 dj_hiddev->ll_driver = &logi_dj_ll_driver; in logi_dj_recv_add_djhid_device()
732 dj_hiddev->dev.parent = &djrcv_hdev->dev; in logi_dj_recv_add_djhid_device()
733 dj_hiddev->bus = BUS_USB; in logi_dj_recv_add_djhid_device()
734 dj_hiddev->vendor = djrcv_hdev->vendor; in logi_dj_recv_add_djhid_device()
735 dj_hiddev->product = (workitem->quad_id_msb << 8) | in logi_dj_recv_add_djhid_device()
749 snprintf(dj_hiddev->name, sizeof(dj_hiddev->name), in logi_dj_recv_add_djhid_device()
751 type_str, dj_hiddev->product); in logi_dj_recv_add_djhid_device()
753 snprintf(dj_hiddev->name, sizeof(dj_hiddev->name), in logi_dj_recv_add_djhid_device()
755 dj_hiddev->product); in logi_dj_recv_add_djhid_device()
759 dj_hiddev->group = HID_GROUP_LOGITECH_27MHZ_DEVICE; in logi_dj_recv_add_djhid_device()
761 dj_hiddev->group = HID_GROUP_LOGITECH_DJ_DEVICE; in logi_dj_recv_add_djhid_device()
763 memcpy(dj_hiddev->phys, djrcv_hdev->phys, sizeof(djrcv_hdev->phys)); in logi_dj_recv_add_djhid_device()
765 strlcat(dj_hiddev->phys, tmpstr, sizeof(dj_hiddev->phys)); in logi_dj_recv_add_djhid_device()
775 dj_dev->hdev = dj_hiddev; in logi_dj_recv_add_djhid_device()
778 dj_hiddev->driver_data = dj_dev; in logi_dj_recv_add_djhid_device()
784 if (hid_add_device(dj_hiddev)) { in logi_dj_recv_add_djhid_device()
797 hid_destroy_device(dj_hiddev); in logi_dj_recv_add_djhid_device()