// SPDX-License-Identifier: MIT /* * Copyright © 2019 Intel Corporation */ #include <linux/vga_switcheroo.h> #include "i915_driver.h" #include "i915_drv.h" #include "i915_switcheroo.h" static void i915_switcheroo_set_state(struct pci_dev *pdev, enum vga_switcheroo_state state) { … } static bool i915_switcheroo_can_switch(struct pci_dev *pdev) { … } static const struct vga_switcheroo_client_ops i915_switcheroo_ops = …; int i915_switcheroo_register(struct drm_i915_private *i915) { … } void i915_switcheroo_unregister(struct drm_i915_private *i915) { … }