summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_load_detect.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2023-04-17 18:37:41 +0300
committerJani Nikula <jani.nikula@intel.com>2023-04-20 14:06:44 +0300
commit8902a55dfcff7add5d8cc77781ecc311fba8855a (patch)
tree9e00d5d1bcbcb66523f57926afee28af59e1a27e /drivers/gpu/drm/i915/display/intel_load_detect.h
parentb13604c0ff26ecde5f708ef5e1fd233f8e89e1f6 (diff)
downloadlinux-8902a55dfcff7add5d8cc77781ecc311fba8855a.tar.xz
drm/i915/display: throw out struct intel_load_detect_pipe
An error-valued pointer can handle all in one without the wrapper struct. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230417153741.1074692-2-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_load_detect.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_load_detect.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_load_detect.h b/drivers/gpu/drm/i915/display/intel_load_detect.h
index 9b69da1867a5..aed51901b9ba 100644
--- a/drivers/gpu/drm/i915/display/intel_load_detect.h
+++ b/drivers/gpu/drm/i915/display/intel_load_detect.h
@@ -10,15 +10,11 @@ struct drm_atomic_state;
struct drm_connector;
struct drm_modeset_acquire_ctx;
-struct intel_load_detect_pipe {
- struct drm_atomic_state *restore_state;
-};
-
-int intel_load_detect_get_pipe(struct drm_connector *connector,
- struct intel_load_detect_pipe *old,
- struct drm_modeset_acquire_ctx *ctx);
+struct drm_atomic_state *
+intel_load_detect_get_pipe(struct drm_connector *connector,
+ struct drm_modeset_acquire_ctx *ctx);
void intel_load_detect_release_pipe(struct drm_connector *connector,
- struct intel_load_detect_pipe *old,
+ struct drm_atomic_state *old,
struct drm_modeset_acquire_ctx *ctx);
#endif /* __INTEL_LOAD_DETECT_H__ */