Driver Core: usb: add nodename support for usb drivers.
[deliverable/linux.git] / include / linux / usb.h
index 3aa2cd1f8d082fd699a5fcfb672e2dd555ea7dcc..34cdfcac4555b580205a0ba0831b8c693f15fe38 100644 (file)
@@ -869,6 +869,8 @@ struct usb_driver {
  * struct usb_device_driver - identifies USB device driver to usbcore
  * @name: The driver name should be unique among USB drivers,
  *     and should normally be the same as the module name.
+ * @nodename: Callback to provide a naming hint for a possible
+ *     device node to create.
  * @probe: Called to see if the driver is willing to manage a particular
  *     device.  If it is, probe returns zero and uses dev_set_drvdata()
  *     to associate driver-specific data with the device.  If unwilling
@@ -912,6 +914,7 @@ extern struct bus_type usb_bus_type;
  */
 struct usb_class_driver {
        char *name;
+       char *(*nodename)(struct device *dev);
        const struct file_operations *fops;
        int minor_base;
 };
This page took 0.027919 seconds and 5 git commands to generate.