Name

__v4l2_mc_usb_media_device_init — create and initialize a struct media_device from a PCI device.

Synopsis

struct media_device * __v4l2_mc_usb_media_device_init (struct usb_device * udev,
 const char * board_name,
 const char * driver_name);
 

Arguments

udev

pointer to struct usb_device

board_name

media device name. If NULL, the routine will use the usb product name, if available.

driver_name

name of the driver. if NULL, the routine will use the name given by udev->dev->driver->name, with is usually the wrong thing to do.

NOTE

It is better to call v4l2_mc_usb_media_device_init instead, as such macro fills driver_name with KBUILD_MODNAME.