MFp4 //depot/projects/usb@159446
Remove unused and depreciated function: usb2_get_devid(). Submitted by: Hans Petter Selasky
This commit is contained in:
parent
090f65a6f6
commit
80536a485c
@ -202,20 +202,6 @@ usb2_trim_spaces(char *p)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*------------------------------------------------------------------------*
|
||||
* usb2_get_devid
|
||||
*
|
||||
* This function returns the USB Vendor and Product ID like a 32-bit
|
||||
* unsigned integer.
|
||||
*------------------------------------------------------------------------*/
|
||||
uint32_t
|
||||
usb2_get_devid(device_t dev)
|
||||
{
|
||||
struct usb2_attach_arg *uaa = device_get_ivars(dev);
|
||||
|
||||
return ((uaa->info.idVendor << 16) | (uaa->info.idProduct));
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------*
|
||||
* usb2_make_str_desc - convert an ASCII string into a UNICODE string
|
||||
*------------------------------------------------------------------------*/
|
||||
|
@ -28,7 +28,6 @@
|
||||
#define _USB2_UTIL_H_
|
||||
|
||||
int device_delete_all_children(device_t dev);
|
||||
uint32_t usb2_get_devid(device_t dev);
|
||||
uint8_t usb2_make_str_desc(void *ptr, uint16_t max_len, const char *s);
|
||||
void device_set_usb2_desc(device_t dev);
|
||||
void usb2_pause_mtx(struct mtx *mtx, int _ticks);
|
||||
|
Loading…
Reference in New Issue
Block a user