SYNOPSIS
- int vga_switcheroo_unlock_ddc(struct pci_dev * pdev);
ARGUMENTS
pdev
-
- client pci device
DESCRIPTION
Switch DDC lines back to the previous owner after calling vga_switcheroo_lock_ddc. This must be called even if vga_switcheroo_lock_ddc returned an error.
RETURN
Previous DDC owner on success (i.e. the client identifier of pdev) or a negative int on error. Specifically, -ENODEV if no handler has registered or if the handler does not support switching the DDC lines. Also, a negative value returned by the handler is propagated back to the caller. Finally, invoking this function without calling vga_switcheroo_lock_ddc first is not allowed and will result in -EINVAL.
AUTHORS
Jesse Barnes <[email protected]>
Intel Corporation,
- Initial version
Laurent Pinchart <[email protected]>
Ideas on board SPRL,
- Driver internals
Daniel Vetter <[email protected]>
Intel Corporation,
- Contributions all over the place
Lukas Wunner <[email protected]>
- vga_switcheroo documentation
COPYRIGHT