usb: gadget: zero: allocate and init otg descriptor by otg capabilities
authorLi Jun <jun.li@freescale.com>
Thu, 9 Jul 2015 07:19:00 +0000 (15:19 +0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Jul 2015 14:59:22 +0000 (09:59 -0500)
commit9e832bf7c011965b378bd963955e315bd0c23aa4
treeb8345768da55a90212bc7cfac9f8fd35fde4c859
parent3dcc7053087fb58c799cd964a00a5396bec3bc9e
usb: gadget: zero: allocate and init otg descriptor by otg capabilities

Allocate and initialize usb otg descriptor according to gadget otg
capabilities, add it for each usb configurations. If otg capability
is not defined, keep its original otg descriptor unchanged.

Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/legacy/zero.c