Commit 17ff3b72 authored by Andrey Konovalov's avatar Andrey Konovalov Committed by Felipe Balbi

usb: raw-gadget: improve uapi headers comments

Fix typo "trasferred" => "transferred".

Don't call USB requests URBs.

Fix comment style.
Signed-off-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 5c4edcdb
...@@ -115,11 +115,11 @@ struct usb_raw_ep_io { ...@@ -115,11 +115,11 @@ struct usb_raw_ep_io {
#define USB_RAW_IOCTL_EVENT_FETCH _IOR('U', 2, struct usb_raw_event) #define USB_RAW_IOCTL_EVENT_FETCH _IOR('U', 2, struct usb_raw_event)
/* /*
* Queues an IN (OUT for READ) urb as a response to the last control request * Queues an IN (OUT for READ) request as a response to the last setup request
* received on endpoint 0, provided that was an IN (OUT for READ) request and * received on endpoint 0 (provided that was an IN (OUT for READ) request), and
* waits until the urb is completed. Copies received data to user for READ. * waits until the request is completed. Copies received data to user for READ.
* Accepts a pointer to the usb_raw_ep_io struct as an argument. * Accepts a pointer to the usb_raw_ep_io struct as an argument.
* Returns length of trasferred data on success or negative error code on * Returns length of transferred data on success or negative error code on
* failure. * failure.
*/ */
#define USB_RAW_IOCTL_EP0_WRITE _IOW('U', 3, struct usb_raw_ep_io) #define USB_RAW_IOCTL_EP0_WRITE _IOW('U', 3, struct usb_raw_ep_io)
...@@ -133,19 +133,20 @@ struct usb_raw_ep_io { ...@@ -133,19 +133,20 @@ struct usb_raw_ep_io {
*/ */
#define USB_RAW_IOCTL_EP_ENABLE _IOW('U', 5, struct usb_endpoint_descriptor) #define USB_RAW_IOCTL_EP_ENABLE _IOW('U', 5, struct usb_endpoint_descriptor)
/* Disables specified endpoint. /*
* Disables specified endpoint.
* Accepts endpoint handle as an argument. * Accepts endpoint handle as an argument.
* Returns 0 on success or negative error code on failure. * Returns 0 on success or negative error code on failure.
*/ */
#define USB_RAW_IOCTL_EP_DISABLE _IOW('U', 6, __u32) #define USB_RAW_IOCTL_EP_DISABLE _IOW('U', 6, __u32)
/* /*
* Queues an IN (OUT for READ) urb as a response to the last control request * Queues an IN (OUT for READ) request as a response to the last setup request
* received on endpoint usb_raw_ep_io.ep, provided that was an IN (OUT for READ) * received on endpoint usb_raw_ep_io.ep (provided that was an IN (OUT for READ)
* request and waits until the urb is completed. Copies received data to user * request), and waits until the request is completed. Copies received data to
* for READ. * user for READ.
* Accepts a pointer to the usb_raw_ep_io struct as an argument. * Accepts a pointer to the usb_raw_ep_io struct as an argument.
* Returns length of trasferred data on success or negative error code on * Returns length of transferred data on success or negative error code on
* failure. * failure.
*/ */
#define USB_RAW_IOCTL_EP_WRITE _IOW('U', 7, struct usb_raw_ep_io) #define USB_RAW_IOCTL_EP_WRITE _IOW('U', 7, struct usb_raw_ep_io)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment