usb: gadget: f_fs: Add flags to descriptors block
authorMichal Nazarewicz <mina86@mina86.com>
Fri, 28 Feb 2014 11:20:23 +0000 (16:50 +0530)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:32:05 +0000 (14:32 +0900)
commitc85f82bceca59662e353560adbd6353fddfc345c
treefbcff5d5417b29c8680d7f8123e4e052b4752b32
parent3566f4afde284e1687e0f4a0149cf736488a1b29
usb: gadget: f_fs: Add flags to descriptors block

This reworks the way SuperSpeed descriptors are added and instead of
having a magic after full and high speed descriptors, it reworks the
whole descriptors block to include a flags field which lists which
descriptors are present and makes future extensions possible.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
[backport from upstream commit 410b1f0e1c86443c57dc70d78db7aec193c79787]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-id: I410b1f0e1c86443c57dc70d78db7aec193c79787
drivers/usb/gadget/f_fs.c
drivers/usb/gadget/u_fs.h
include/uapi/linux/usb/functionfs.h