usb/80774: have "usbd_find_desc" in line with the other
"usbd_find_xxx"
Hans Petter Selasky
hselasky at c2i.net
Sun May 8 06:50:03 PDT 2005
>Number: 80774
>Category: usb
>Synopsis: have "usbd_find_desc" in line with the other "usbd_find_xxx"
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun May 08 13:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: HPS
>Release: FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 6.0-CURRENT FreeBSD 6.0-CURRENT #45: Mon Mar 21 15:40:17 CET
2005 root@:/usr/obj/usr/src/sys/custom i386
>Description:
"usbd_find_desc()" was put into the wrong file. The function belongs together
with "usbd_find_edesc()" and "usbd_find_idesc()" and should take
"usb_config_descriptor_t *" as argument.
>How-To-Repeat:
>Fix:
const usb_descriptor_t *usb_find_desc(usbd_device_handle dev, int type,
int subtype);
#define USBD_SUBTYPE_ANY (~0) /* XXX mixing signed and unsigned types is not
good */
changed into:
usb_descriptor_t *usb_find_desc(usb_config_descriptor_t *, int type,
int subtype);
#define USBD_SUBTYPE_ANY (-1)
Usage: "usb_find_desc(usbd_get_config_descriptor(udev), ... );"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-usb
mailing list