Fix typo "trasferred" => "transferred". Don't call USB requests URBs. Fix comment style.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -115,11 +115,11 @@ struct usb_raw_ep_io { · 114 unmodified lines | |||
| 115 | #define USB_RAW_IOCTL_EVENT_FETCH _IOR('U', 2, struct usb_raw_event) | 115 | #define USB_RAW_IOCTL_EVENT_FETCH _IOR('U', 2, struct usb_raw_event) |
| 116 | 116 | ||
| 117 | /* | 117 | /* |
| 118 | * Queues an IN (OUT for READ) urb as a response to the last control request | 118 | * Queues an IN (OUT for READ) request as a response to the last setup request |
| 119 | * received on endpoint 0, provided that was an IN (OUT for READ) request and | 119 | * received on endpoint 0 (provided that was an IN (OUT for READ) request), and |
| 120 | * waits until the urb is completed. Copies received data to user for READ. | 120 | * waits until the request is completed. Copies received data to user for READ. |
| 121 | * Accepts a pointer to the usb_raw_ep_io struct as an argument. | 121 | * Accepts a pointer to the usb_raw_ep_io struct as an argument. |
| 122 | * Returns length of trasferred data on success or negative error code on | 122 | * Returns length of transferred data on success or negative error code on |
| 123 | * failure. | 123 | * failure. |
| 124 | */ | 124 | */ |
| 125 | #define USB_RAW_IOCTL_EP0_WRITE _IOW('U', 3, struct usb_raw_ep_io) | 125 | #define USB_RAW_IOCTL_EP0_WRITE _IOW('U', 3, struct usb_raw_ep_io) |
| @@ -133,19 +133,20 @@ struct usb_raw_ep_io { · 7 unmodified lines | |||
| 133 | */ | 133 | */ |
| 134 | #define USB_RAW_IOCTL_EP_ENABLE _IOW('U', 5, struct usb_endpoint_descriptor) | 134 | #define USB_RAW_IOCTL_EP_ENABLE _IOW('U', 5, struct usb_endpoint_descriptor) |
| 135 | 135 | ||
| 136 | /* Disables specified endpoint. | 136 | /* |
| 137 | * Disables specified endpoint. | ||
| 137 | * Accepts endpoint handle as an argument. | 138 | * Accepts endpoint handle as an argument. |
| 138 | * Returns 0 on success or negative error code on failure. | 139 | * Returns 0 on success or negative error code on failure. |
| 139 | */ | 140 | */ |
| 140 | #define USB_RAW_IOCTL_EP_DISABLE _IOW('U', 6, __u32) | 141 | #define USB_RAW_IOCTL_EP_DISABLE _IOW('U', 6, __u32) |
| 141 | 142 | ||
| 142 | /* | 143 | /* |
| 143 | * Queues an IN (OUT for READ) urb as a response to the last control request | 144 | * Queues an IN (OUT for READ) request as a response to the last setup request |
| 144 | * received on endpoint usb_raw_ep_io.ep, provided that was an IN (OUT for READ) | 145 | * received on endpoint usb_raw_ep_io.ep (provided that was an IN (OUT for READ) |
| 145 | * request and waits until the urb is completed. Copies received data to user | 146 | * request), and waits until the request is completed. Copies received data to |
| 146 | * for READ. | 147 | * user for READ. |
| 147 | * Accepts a pointer to the usb_raw_ep_io struct as an argument. | 148 | * Accepts a pointer to the usb_raw_ep_io struct as an argument. |
| 148 | * Returns length of trasferred data on success or negative error code on | 149 | * Returns length of transferred data on success or negative error code on |
| 149 | * failure. | 150 | * failure. |
| 150 | */ | 151 | */ |
| 151 | #define USB_RAW_IOCTL_EP_WRITE _IOW('U', 7, struct usb_raw_ep_io) | 152 | #define USB_RAW_IOCTL_EP_WRITE _IOW('U', 7, struct usb_raw_ep_io) |