mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 20:00:13 +00:00
DM USB: add usb_dev_path_cmp function for convenience
Comparing two USB devices' path is frequently used operation, abstract it as an seperated function for convenience. Tracked-On: #1893 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -257,4 +257,5 @@ struct usb_data_xfer_block *usb_data_xfer_append(struct usb_data_xfer *xfer,
|
||||
int ccs);
|
||||
int usb_get_hub_port_num(struct usb_devpath *path);
|
||||
char *usb_dev_path(struct usb_devpath *path);
|
||||
bool usb_dev_path_cmp(struct usb_devpath *p1, struct usb_devpath *p2);
|
||||
#endif /* _USB_CORE_H_ */
|
||||
|
Reference in New Issue
Block a user