summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-09-08 11:03:03 +1000
committerDave Airlie <airlied@redhat.com>2021-09-08 11:03:03 +1000
commitf762aab2c1c36f239bb8f250dc2eb1e829dc3cf9 (patch)
tree0b9d9aef6938fcdafc51d886b3cca96c532a7f14
parent2ed45928e52b23193d9487a86dab00e803a5a920 (diff)
drm/i915: move dpll vtable definition into pll headerdrm-i915-display-funcs-constify
-rw-r--r--drivers/gpu/drm/i915/display/intel_dpll.h4
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dpll.h b/drivers/gpu/drm/i915/display/intel_dpll.h
index db396b3e1141..58fd1d2e7ee8 100644
--- a/drivers/gpu/drm/i915/display/intel_dpll.h
+++ b/drivers/gpu/drm/i915/display/intel_dpll.h
@@ -14,6 +14,10 @@ struct intel_crtc;
struct intel_crtc_state;
enum pipe;
+struct drm_i915_dpll_funcs {
+ int (*crtc_compute_clock)(struct intel_crtc_state *crtc_state);
+};
+
void intel_dpll_init_clock_hook(struct drm_i915_private *dev_priv);
int vlv_calc_dpll_params(int refclk, struct dpll *clock);
int pnv_calc_dpll_params(int refclk, struct dpll *clock);
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 7c487b077148..f6a7890b135e 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -328,6 +328,7 @@ struct drm_i915_display_audio_funcs;
struct drm_i915_display_funcs;
struct drm_i915_display_cdclk_funcs;
struct drm_i915_fdi_link_train_funcs;
+struct drm_i915_dpll_funcs;
/* functions used for watermark calcs for display. */
struct drm_i915_wm_disp_funcs {
@@ -350,10 +351,6 @@ struct drm_i915_irq_funcs {
void (*hpd_irq_setup)(struct drm_i915_private *dev_priv);
};
-struct drm_i915_dpll_funcs {
- int (*crtc_compute_clock)(struct intel_crtc_state *crtc_state);
-};
-
#define I915_COLOR_UNEVICTABLE (-1) /* a non-vma sharing the address space */
struct intel_fbc {