usbip: dynamically allocate idev by nports found in sysfs
[sfrench/cifs-2.6.git] / tools / usb / usbip / libsrc / vhci_driver.h
index 418b404d5121079837aade8ba692c977e441ef52..6c9aca2167051cd5ee15674092c5aee31e0f895d 100644 (file)
@@ -13,7 +13,6 @@
 
 #define USBIP_VHCI_BUS_TYPE "platform"
 #define USBIP_VHCI_DEVICE_NAME "vhci_hcd.0"
-#define MAXNPORT 128
 
 enum hub_speed {
        HUB_SPEED_HIGH = 0,
@@ -41,7 +40,7 @@ struct usbip_vhci_driver {
 
        int ncontrollers;
        int nports;
-       struct usbip_imported_device idev[MAXNPORT];
+       struct usbip_imported_device idev[];
 };