lkml.org 
[lkml]   [2014]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 2/3] usb: gadget: f_fs: add ioctl returning ep descriptor
Hello.

On 8/20/2014 9:46 AM, Robert Baldyga wrote:

> This patch introduces ioctl named FUNCTIONFS_ENDPOINT_DESC, which
> returns endpoint descriptor to userspace. It works only if function
> is active.

> Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>

[...]

> diff --git a/include/uapi/linux/usb/functionfs.h b/include/uapi/linux/usb/functionfs.h
> index 0154b28..900896e 100644
> --- a/include/uapi/linux/usb/functionfs.h
> +++ b/include/uapi/linux/usb/functionfs.h
> @@ -265,6 +265,12 @@ struct usb_functionfs_event {
> */
> #define FUNCTIONFS_ENDPOINT_REVMAP _IO('g', 129)
>
> +/*
> + * Returns endpoint descriptor. In funciton is not active returns -ENODEV.

s/funciton/function/.

WBR, Sergei



\
 
 \ /
  Last update: 2014-08-20 14:21    [W:0.029 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site