1. NAME

usb_gadget_set_selfpowered - sets the device selfpowered feature.

2. SYNOPSIS

int usb_gadget_set_selfpowered(struct usb_gadget *  gadget );

3. ARGUMENTS

gadget
    the device being declared as self-powered

4. DESCRIPTION

this affects the device status reported by the hardware driver to reflect that it now has a local power supply.

returns zero on success, else negative errno.

5. AUTHOR

David Brownell <>
    Author.

6. COPYRIGHT