From: Sebastian Andrzej Siewior Date: Mon, 31 Oct 2011 21:25:40 +0000 (+0100) Subject: usb: dwc3: use a helper function for operation mode setting X-Git-Tag: v3.3-rc1~153^2~30^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3140e8cbfec18ecb9c9ef856933fdb98c09af1e8;p=pandora-kernel.git usb: dwc3: use a helper function for operation mode setting There are two where need to set operational mode: - during initialization while we decide to run in host,device or DRD mode - at runtime via the debugfs interface. This patch provides a new function which sets the operational mode and moves its initialiation to the mode switch instead in the gadget code itself. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed