From: Benoit Goby Date: Thu, 10 May 2012 08:07:57 +0000 (+0200) Subject: usb: gadget: composite: Add usb_remove_config X-Git-Tag: v3.5-rc1~149^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51cce6fc155c4d7eea2ff975ee7c82b89332c6d9;p=pandora-kernel.git usb: gadget: composite: Add usb_remove_config Add usb_remove_config to unbind a configuration and remove it from the configs list. This allows implementing composite gadget drivers that can disconnect themself from the bus and that will later be re-enumerated with a different configuration. Gadget drivers must call usb_gadget_disconnect before calling this function to disable the pullup, disconnect the device from the host, and prevent the host from enumerating the device while we are changing the gadget configuration. Signed-off-by: Benoit Goby [change return type of [usb_]remove_config] Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park Acked-by: Michal Nazarewicz Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed