usb: gadget: dummy_hdc: prepare for multiple instances
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 30 Oct 2012 11:53:17 +0000 (12:53 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 31 Oct 2012 13:16:47 +0000 (15:16 +0200)
commitb2113136a5701a7aaffee96c0423e7a620124328
tree59fb4455cb35487fc7718c7eff41fd66522d7534
parent1616e99d42a8b427b8dcada347ef0ee0df1a1b7b
usb: gadget: dummy_hdc: prepare for multiple instances

This patch replaces the single pdev variable by an array. One change:
The device id is no longer -1 (i.e. none) but 0.
This is prepation work for multiple instances of the dummy_hcd + udc
which should help to test gadget framework with multiple UDCs.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/dummy_hcd.c