Name

usb_remove_config — remove a configuration from a device.

Synopsis

void usb_remove_config (struct usb_composite_dev * cdev,
 struct usb_configuration * config);
 

Arguments

cdev

wraps the USB gadget

config

the configuration

Description

Drivers must call usb_gadget_disconnect before calling this function to disconnect the device from the host and make sure the host will not try to enumerate the device while we are changing the config list.