From: Sebastian Andrzej Siewior Date: Sun, 23 Dec 2012 20:10:20 +0000 (+0100) Subject: usb: gadget: factor out two helper functions from composite_bind() X-Git-Tag: v3.9-rc1~126^2~43^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a59233407aed54b8a9121cea75d9c6a2a470d8d3;p=pandora-kernel.git usb: gadget: factor out two helper functions from composite_bind() This patch factors out two helper functions from composite_bind() that is composite_dev_prepare() and its counterpart composite_dev_cleanup(). This will be used by the configfs which requries a slightly different bind/setup code because part of its configurations (i.e. config descripts, cdev, …) are setup in advance and VID/PID and so one should not be overwritten. Also the setup of ep0 endpoint can be delayed until the UDC is assigned. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed