Bug 80774 - [patch] have "usbd_find_desc" in line with the other "usbd_find_xxx"
Summary: [patch] have "usbd_find_desc" in line with the other "usbd_find_xxx"
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 6.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-08 14:50 UTC by Hans Petter Selasky
Modified: 2018-02-18 07:58 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Petter Selasky 2005-05-08 14:50:02 UTC
"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.

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), ... );"
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:32 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Alex Kozlov freebsd_committer freebsd_triage 2018-02-18 07:58:28 UTC
The patch is not applicable to new usb stack.