aboutsummaryrefslogtreecommitdiff
path: root/tools/usb/usbip/libsrc/vhci_driver.h
diff options
context:
space:
mode:
authorGravatar Yuyang Du <yuyang.du@intel.com> 2017-05-22 18:20:16 +0800
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2017-06-13 10:48:24 +0200
commitaa3ecb9154acb99282f315fe6c34ce4b7eb4d67e (patch)
tree5a93c493993195b70cff24af1408ea816dc14771 /tools/usb/usbip/libsrc/vhci_driver.h
parentusb: usbip tool: Check the return of get_nports() (diff)
downloadlinux-aa3ecb9154acb99282f315fe6c34ce4b7eb4d67e.tar.gz
linux-aa3ecb9154acb99282f315fe6c34ce4b7eb4d67e.tar.bz2
linux-aa3ecb9154acb99282f315fe6c34ce4b7eb4d67e.zip
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];
};