Lines Matching defs:hdev
61 struct hid_device *hdev;
71 return hid_hw_open(data->hdev);
78 hid_hw_close(data->hdev);
85 input = devm_input_allocate_device(&data->hdev->dev);
89 input->id.bustype = data->hdev->bus;
90 input->id.vendor = data->hdev->vendor;
91 input->id.product = data->hdev->product;
92 input->id.version = data->hdev->bus;
93 input->phys = data->hdev->phys;
94 input->uniq = data->hdev->uniq;
165 static int letsketch_raw_event(struct hid_device *hdev,
169 struct letsketch_data *data = hid_get_drvdata(hdev);
201 hid_warn(data->hdev, "Warning unknown data header: 0x%02x\n",
232 static int letsketch_probe(struct hid_device *hdev, const struct hid_device_id *id)
234 struct device *dev = &hdev->dev;
241 if (!hid_is_usb(hdev))
244 intf = to_usb_interface(hdev->dev.parent);
261 hid_info(hdev, "Device info: %s\n", buf);
284 ret = hid_parse(hdev);
292 data->hdev = hdev;
294 hid_set_drvdata(hdev, data);
304 return hid_hw_start(hdev, HID_CONNECT_HIDRAW);