Lines Matching defs:hdev
39 static int elo_input_configured(struct hid_device *hdev,
80 static int elo_raw_event(struct hid_device *hdev, struct hid_report *report,
85 if (!(hdev->claimed & HID_CLAIMED_INPUT) || list_empty(&hdev->inputs))
88 hidinput = list_first_entry(&hdev->inputs, struct hid_input, list);
99 hid_info(hdev, "unknown report type %d\n", report->id);
227 static int elo_probe(struct hid_device *hdev, const struct hid_device_id *id)
232 if (!hid_is_usb(hdev))
240 priv->usbdev = interface_to_usbdev(to_usb_interface(hdev->dev.parent));
242 hid_set_drvdata(hdev, priv);
244 ret = hid_parse(hdev);
246 hid_err(hdev, "parse failed\n");
250 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
252 hid_err(hdev, "hw start failed\n");
257 hid_info(hdev, "broken firmware found, installing workaround\n");
267 static void elo_remove(struct hid_device *hdev)
269 struct elo_priv *priv = hid_get_drvdata(hdev);
271 hid_hw_stop(hdev);