Date: Thu, 19 Mar 2009 14:58:37 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 159446 for review Message-ID: <200903191458.n2JEwbKE070819@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=159446 Change 159446 by hselasky@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);help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903191458.n2JEwbKE070819>
