usb: gadget: f_fs: add ioctl returning ep descriptor
authorRobert Baldyga <r.baldyga@samsung.com>
Tue, 9 Sep 2014 06:23:16 +0000 (08:23 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 9 Sep 2014 15:04:45 +0000 (10:04 -0500)
commitc559a353410939c0884e83bdb0e2420a986ac53b
treea08371689dd43528a869f443839df674a344a58c
parente45cfa2051d1b7d3378887d9576e11484e25c7d6
usb: gadget: f_fs: add ioctl returning ep descriptor

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>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_fs.c
include/uapi/linux/usb/functionfs.h