From owner-svn-src-all@FreeBSD.ORG Fri Mar 20 22:12:16 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42B991065672; Fri, 20 Mar 2009 22:12:16 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0ECDE8FC15; Fri, 20 Mar 2009 22:12:16 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2KMCFwo015403; Fri, 20 Mar 2009 22:12:15 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2KMCFnF015401; Fri, 20 Mar 2009 22:12:15 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200903202212.n2KMCFnF015401@svn.freebsd.org> From: Andrew Thompson Date: Fri, 20 Mar 2009 22:12:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190187 - head/sys/dev/usb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 22:12:16 -0000 Author: thompsa Date: Fri Mar 20 22:12:15 2009 New Revision: 190187 URL: http://svn.freebsd.org/changeset/base/190187 Log: MFp4 //depot/projects/usb@159446 Remove unused and depreciated function: usb2_get_devid(). Submitted by: Hans Petter Selasky Modified: head/sys/dev/usb/usb_util.c head/sys/dev/usb/usb_util.h Modified: head/sys/dev/usb/usb_util.c ============================================================================== --- head/sys/dev/usb/usb_util.c Fri Mar 20 22:10:36 2009 (r190186) +++ head/sys/dev/usb/usb_util.c Fri Mar 20 22:12:15 2009 (r190187) @@ -203,20 +203,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 *------------------------------------------------------------------------*/ uint8_t Modified: head/sys/dev/usb/usb_util.h ============================================================================== --- head/sys/dev/usb/usb_util.h Fri Mar 20 22:10:36 2009 (r190186) +++ head/sys/dev/usb/usb_util.h Fri Mar 20 22:12:15 2009 (r190187) @@ -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);