summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_request.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2009-07-30 00:15:50 +0000
committeralfred <alfred@FreeBSD.org>2009-07-30 00:15:50 +0000
commitec456e3a3b32ea50f5c8e3b3a05352e989c10967 (patch)
treead76cd69ab61646de0aee618acfa94818090e52d /sys/dev/usb/usb_request.c
parentfee3a289891db0743737072e9c451512f989ceae (diff)
downloadFreeBSD-src-ec456e3a3b32ea50f5c8e3b3a05352e989c10967.zip
FreeBSD-src-ec456e3a3b32ea50f5c8e3b3a05352e989c10967.tar.gz
USB core:
- add support for defragging of written device data. - improve handling of alternate settings in device side mode. - correct return value from usbd_get_no_alts() function. - reported by: HPS - P4 ID: 166156, 166168 - report USB device release information to devd and pnpinfo. - reported by: MIHIRA Sanpei Yoshiro - P4 ID: 166221 Submitted by: hps Approved by: re
Diffstat (limited to 'sys/dev/usb/usb_request.c')
-rw-r--r--sys/dev/usb/usb_request.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_request.c b/sys/dev/usb/usb_request.c
index de7101a..8ccaa14 100644
--- a/sys/dev/usb/usb_request.c
+++ b/sys/dev/usb/usb_request.c
@@ -1059,9 +1059,9 @@ usbd_req_get_alt_interface_no(struct usb_device *udev, struct mtx *mtx,
struct usb_interface *iface = usbd_get_iface(udev, iface_index);
struct usb_device_request req;
- if ((iface == NULL) || (iface->idesc == NULL)) {
+ if ((iface == NULL) || (iface->idesc == NULL))
return (USB_ERR_INVAL);
- }
+
req.bmRequestType = UT_READ_INTERFACE;
req.bRequest = UR_GET_INTERFACE;
USETW(req.wValue, 0);
@@ -1085,9 +1085,9 @@ usbd_req_set_alt_interface_no(struct usb_device *udev, struct mtx *mtx,
struct usb_interface *iface = usbd_get_iface(udev, iface_index);
struct usb_device_request req;
- if ((iface == NULL) || (iface->idesc == NULL)) {
+ if ((iface == NULL) || (iface->idesc == NULL))
return (USB_ERR_INVAL);
- }
+
req.bmRequestType = UT_WRITE_INTERFACE;
req.bRequest = UR_SET_INTERFACE;
req.wValue[0] = alt_no;
OpenPOWER on IntegriCloud