diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-10-04 15:20:18 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-10-06 11:25:00 +0300 |
commit | 63bf8301aac492d4c5fdf7b0ec42b142c05080e3 (patch) | |
tree | b95cf6714499cfef7e6db1a4c371e0526316bd11 /drivers/gpu/drm/i915/i915_switcheroo.h | |
parent | 7fd296024c3cd06773a1df712b2c50932aeea60b (diff) | |
download | linux-63bf8301aac492d4c5fdf7b0ec42b142c05080e3.tar.xz |
drm/i915: split out i915_switcheroo.[ch] from i915_drv.c
Split out code related to vga switcheroo register/unregister and state
handling from i915_drv.c into new i915_switcheroo.[ch] files.
It's a bit difficult to draw the line how much to move to the new file
from i915_drv.c, but it seemed to me keeping i915_suspend_switcheroo()
and i915_resume_switcheroo() in place was the cleanest.
No functional changes.
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191004122019.12009-2-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_switcheroo.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_switcheroo.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_switcheroo.h b/drivers/gpu/drm/i915/i915_switcheroo.h new file mode 100644 index 000000000000..59b6c1e07d75 --- /dev/null +++ b/drivers/gpu/drm/i915/i915_switcheroo.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Copyright © 2019 Intel Corporation + */ + +#ifndef __I915_SWITCHEROO__ +#define __I915_SWITCHEROO__ + +struct drm_i915_private; + +int i915_switcheroo_register(struct drm_i915_private *i915); +void i915_switcheroo_unregister(struct drm_i915_private *i915); + +#endif /* __I915_SWITCHEROO__ */ |