USB: gadget: composite: Dynamically set IAD bFirstInterface
authorJohn Michelau <john.michelau@motorola.com>
Fri, 10 Dec 2010 18:09:53 +0000 (12:09 -0600)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:11 +0000 (09:09 -0700)
commitf71a394a4066f704926d53872a92bc6f8d5b469e
treef44fb96ae665f0ffe4df33d818f4a6c410cacfb5
parentd5d2de6539f4a588d8a6187cfe8396d4300b4653
USB: gadget: composite: Dynamically set IAD bFirstInterface

bFirstInterface should be set equal to bInterfaceNumber of
the first interface in a grouping. It's currently being set
only when a composite device is bound, and it does not get
updated when functions are enabled or disabled.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/composite.c