/** * comedi_pcmcia_auto_config() - Configure/probe a comedi PCMCIA driver. * @link: pcmcia_device struct * @driver: comedi_driver struct * * Typically called from the pcmcia_driver (*probe) function. */ int comedi_pcmcia_auto_config(struct pcmcia_device *link, struct comedi_driver *driver) { return comedi_auto_config(&link->dev, driver, 0); }
/** * comedi_pci_auto_config() - Configure/probe a PCI COMEDI device * @pcidev: PCI device. * @driver: Registered COMEDI driver. * @context: Driver specific data, passed to comedi_auto_config(). * * Typically called from the pci_driver (*probe) function. Auto-configure * a COMEDI device, using the &struct device embedded in *@pcidev as the * hardware device. The @context value gets passed through to @driver's * "auto_attach" handler. The "auto_attach" handler may call * comedi_to_pci_dev() on the passed in COMEDI device to recover @pcidev. * * Return: The result of calling comedi_auto_config() (0 on success, or * a negative error number on failure). */ int comedi_pci_auto_config(struct pci_dev *pcidev, struct comedi_driver *driver, unsigned long context) { return comedi_auto_config(&pcidev->dev, driver, context); }
/** * comedi_usb_auto_config() - Configure/probe a comedi USB driver. * @intf: usb_interface struct * @driver: comedi_driver struct * @context: driver specific data, passed to comedi_auto_config() * * Typically called from the usb_driver (*probe) function. */ int comedi_usb_auto_config(struct usb_interface *intf, struct comedi_driver *driver, unsigned long context) { return comedi_auto_config(&intf->dev, driver, context); }