1. NAME

usb_gadget_vbus_disconnect - notify controller about VBUS session end

2. SYNOPSIS

int usb_gadget_vbus_disconnect(struct usb_gadget *  gadget );

3. ARGUMENTS

gadget
    the device whose VBUS supply is being described

4. CONTEXT

can sleep

5. DESCRIPTION

This call is used by a driver for an external transceiver (or GPIO) that detects a VBUS power session ending. Common responses include reversing everything done in usb_gadget_vbus_connect.

Returns zero on success, else negative errno.

6. AUTHOR

David Brownell <>
    Author.

7. COPYRIGHT