vga_switcheroo_unlock_ddc — switch DDC lines back to previous owner
int vga_switcheroo_unlock_ddc ( | struct pci_dev * pdev) ; |
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.
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
.