PERFORCE change 159446 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Mar 19 07:58:39 PDT 2009
http://perforce.freebsd.org/chv.cgi?CH=159446
Change 159446 by hselasky at hselasky_laptop001 on 2009/03/19 14:58:00
USB CORE:
- Remove unused and depreciated function: usb2_get_devid().
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_util.c#4 edit
.. //depot/projects/usb/src/sys/dev/usb/usb_util.h#3 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_util.c#4 (text+ko) ====
@@ -203,20 +203,6 @@
#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
*------------------------------------------------------------------------*/
uint8_t
==== //depot/projects/usb/src/sys/dev/usb/usb_util.h#3 (text+ko) ====
@@ -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);
More information about the p4-projects
mailing list