Lines Matching defs:interface
18 /* include interface to i2c layer */
154 * Initially the usb i2c interface uses a vid/pid pair donated by
169 struct usb_interface *interface; /* the interface for this device */
218 static int i2c_tiny_usb_probe(struct usb_interface *interface,
225 if (interface->intf_assoc &&
226 interface->intf_assoc->bFunctionClass != USB_CLASS_VENDOR_SPEC)
229 dev_dbg(&interface->dev, "probing usb device\n");
236 dev->usb_dev = usb_get_dev(interface_to_usbdev(interface));
237 dev->interface = interface;
239 /* save our data pointer in this interface device */
240 usb_set_intfdata(interface, dev);
243 dev_info(&interface->dev,
264 dev->adapter.dev.parent = &dev->interface->dev;
281 static void i2c_tiny_usb_disconnect(struct usb_interface *interface)
283 struct i2c_tiny_usb *dev = usb_get_intfdata(interface);
286 usb_set_intfdata(interface, NULL);
289 dev_dbg(&interface->dev, "disconnected\n");