Lines Matching defs:hdev
115 static int lua_init_specials(struct hid_device *hdev)
117 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
124 hid_err(hdev, "can't alloc device descriptor\n");
127 hid_set_drvdata(hdev, lua);
131 hid_err(hdev, "couldn't init struct lua_device\n");
137 hid_err(hdev, "cannot create sysfs files\n");
147 static void lua_remove_specials(struct hid_device *hdev)
149 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
154 lua = hid_get_drvdata(hdev);
158 static int lua_probe(struct hid_device *hdev,
163 if (!hid_is_usb(hdev))
166 retval = hid_parse(hdev);
168 hid_err(hdev, "parse failed\n");
172 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
174 hid_err(hdev, "hw start failed\n");
178 retval = lua_init_specials(hdev);
180 hid_err(hdev, "couldn't install mouse\n");
187 hid_hw_stop(hdev);
192 static void lua_remove(struct hid_device *hdev)
194 lua_remove_specials(hdev);
195 hid_hw_stop(hdev);