1. NAME

usb_gadget_clear_selfpowered - clear the device selfpowered feature.

2. SYNOPSIS

int usb_gadget_clear_selfpowered(struct usb_gadget *  gadget );

3. ARGUMENTS

gadget
    the device being declared as bus-powered

4. DESCRIPTION

this affects the device status reported by the hardware driver. some hardware may not support bus-powered operation, in which case this featureAqs value can never change.

returns zero on success, else negative errno.

5. AUTHOR

David Brownell <>
    Author.

6. COPYRIGHT