summaryrefslogtreecommitdiff
path: root/tools/usb/usbip/libsrc/vhci_driver.h
diff options
context:
space:
mode:
authorYuyang Du <yuyang.du@intel.com>2017-05-22 13:20:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-13 11:48:24 +0300
commitaa3ecb9154acb99282f315fe6c34ce4b7eb4d67e (patch)
tree5a93c493993195b70cff24af1408ea816dc14771 /tools/usb/usbip/libsrc/vhci_driver.h
parentc3509715fc9484a48b69a9f0196b728c960840c9 (diff)
downloadlinux-aa3ecb9154acb99282f315fe6c34ce4b7eb4d67e.tar.xz
usb: usbip tool: Add ncontrollers in vhci_driver structure
A new field ncontrollers is added to the vhci_driver structure. And this field is stored by scanning the vhci_hcd* dirs in the platform udev. Suggested-and-reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com> Signed-off-by: Yuyang Du <yuyang.du@intel.com> Acked-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/usb/usbip/libsrc/vhci_driver.h')
-rw-r--r--tools/usb/usbip/libsrc/vhci_driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/usb/usbip/libsrc/vhci_driver.h b/tools/usb/usbip/libsrc/vhci_driver.h
index fa2316cf2cac..33add142c46e 100644
--- a/tools/usb/usbip/libsrc/vhci_driver.h
+++ b/tools/usb/usbip/libsrc/vhci_driver.h
@@ -31,6 +31,7 @@ struct usbip_vhci_driver {
/* /sys/devices/platform/vhci_hcd */
struct udev_device *hc_device;
+ int ncontrollers;
int nports;
struct usbip_imported_device idev[MAXNPORT];
};