vga_switcheroo_init_domain_pm_ops — helper for driver power control
int vga_switcheroo_init_domain_pm_ops ( | struct device * dev, |
struct dev_pm_domain * domain) ; |
Helper for GPUs whose power state is controlled by the driver's runtime pm. After the GPU has been suspended, the handler needs to be called to cut power to the GPU. Likewise it needs to reinstate power before the GPU can resume. To this end, this helper augments the suspend/resume functions by the requisite calls to the handler. It needs only be called on platforms where the power switch is separate to the device being powered down.