History

usb: raw-gadget: improve uapi headers comments

Fix typo "trasferred" => "transferred". Don't call USB requests URBs. Fix comment style.

Andrey Konovalov committed 6 years ago

Commit 17ff3b71 parent 5c4edcd1 file · +11 −10Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/usb/raw_gadget.h+11−10
@@ -115,11 +115,11 @@ struct usb_raw_ep_io { · 114 unmodified lines
115115 #define USB_RAW_IOCTL_EVENT_FETCH _IOR('U', 2, struct usb_raw_event)
116116
117117 /*
118− * Queues an IN (OUT for READ) urb as a response to the last control request
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.
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
120+ * waits until the request is completed. Copies received data to user for READ.
121121 * 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
123123 * failure.
124124 */
125125 #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
133133 */
134134 #define USB_RAW_IOCTL_EP_ENABLE _IOW('U', 5, struct usb_endpoint_descriptor)
135135
136−/* Disables specified endpoint.
136+/*
137+ * Disables specified endpoint.
137138 * Accepts endpoint handle as an argument.
138139 * Returns 0 on success or negative error code on failure.
139140 */
140141 #define USB_RAW_IOCTL_EP_DISABLE _IOW('U', 6, __u32)
141142
142143 /*
143− * Queues an IN (OUT for READ) urb as a response to the last control request
144− * 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− * for READ.
144+ * Queues an IN (OUT for READ) request as a response to the last setup request
145+ * received on endpoint usb_raw_ep_io.ep (provided that was an IN (OUT for READ)
146+ * request), and waits until the request is completed. Copies received data to
147+ * user for READ.
147148 * 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
149150 * failure.
150151 */
151152 #define USB_RAW_IOCTL_EP_WRITE _IOW('U', 7, struct usb_raw_ep_io)