Commit b8d65b8a authored by Jani Nikula's avatar Jani Nikula

drm/i915/driver: add i915_driver_ prefix to functions

Add the i915_driver_ prefix to the switcheroo functions in
i915_driver.[ch].
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20211111101304.13094-3-jani.nikula@intel.com
parent 4588d7eb
...@@ -1220,7 +1220,8 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation) ...@@ -1220,7 +1220,8 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation)
return ret; return ret;
} }
int i915_suspend_switcheroo(struct drm_i915_private *i915, pm_message_t state) int i915_driver_suspend_switcheroo(struct drm_i915_private *i915,
pm_message_t state)
{ {
int error; int error;
...@@ -1381,7 +1382,7 @@ static int i915_drm_resume_early(struct drm_device *dev) ...@@ -1381,7 +1382,7 @@ static int i915_drm_resume_early(struct drm_device *dev)
return ret; return ret;
} }
int i915_resume_switcheroo(struct drm_i915_private *i915) int i915_driver_resume_switcheroo(struct drm_i915_private *i915)
{ {
int ret; int ret;
......
...@@ -18,7 +18,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent); ...@@ -18,7 +18,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
void i915_driver_remove(struct drm_i915_private *i915); void i915_driver_remove(struct drm_i915_private *i915);
void i915_driver_shutdown(struct drm_i915_private *i915); void i915_driver_shutdown(struct drm_i915_private *i915);
int i915_resume_switcheroo(struct drm_i915_private *i915); int i915_driver_resume_switcheroo(struct drm_i915_private *i915);
int i915_suspend_switcheroo(struct drm_i915_private *i915, pm_message_t state); int i915_driver_suspend_switcheroo(struct drm_i915_private *i915, pm_message_t state);
#endif /* __I915_DRIVER_H__ */ #endif /* __I915_DRIVER_H__ */
...@@ -25,12 +25,12 @@ static void i915_switcheroo_set_state(struct pci_dev *pdev, ...@@ -25,12 +25,12 @@ static void i915_switcheroo_set_state(struct pci_dev *pdev,
i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING; i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING;
/* i915 resume handler doesn't set to D0 */ /* i915 resume handler doesn't set to D0 */
pci_set_power_state(pdev, PCI_D0); pci_set_power_state(pdev, PCI_D0);
i915_resume_switcheroo(i915); i915_driver_resume_switcheroo(i915);
i915->drm.switch_power_state = DRM_SWITCH_POWER_ON; i915->drm.switch_power_state = DRM_SWITCH_POWER_ON;
} else { } else {
drm_info(&i915->drm, "switched off\n"); drm_info(&i915->drm, "switched off\n");
i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING; i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING;
i915_suspend_switcheroo(i915, pmm); i915_driver_suspend_switcheroo(i915, pmm);
i915->drm.switch_power_state = DRM_SWITCH_POWER_OFF; i915->drm.switch_power_state = DRM_SWITCH_POWER_OFF;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment