diff options
author | Maxime Ripard <maxime@cerno.tech> | 2021-10-25 18:28:56 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-11-04 12:36:25 +0300 |
commit | d0229c360a42439c2a7c40c977455a4f9fc387de (patch) | |
tree | 494d22b191f41f9830edf8d6a7300bad89ee4076 /drivers/gpu/drm/vc4/vc4_drv.h | |
parent | e32e5723256a99c5324824503572f743377dd0fe (diff) | |
download | linux-d0229c360a42439c2a7c40c977455a4f9fc387de.tar.xz |
drm/vc4: Make vc4_crtc_get_encoder public
We'll need that function in vc4_kms to compute the core clock rate
requirements.
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20211025152903.1088803-4-maxime@cerno.tech
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.h')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_drv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h index ef73e0aaf726..0865f05822e0 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.h +++ b/drivers/gpu/drm/vc4/vc4_drv.h @@ -517,6 +517,11 @@ vc4_crtc_to_vc4_pv_data(const struct vc4_crtc *crtc) return container_of(data, struct vc4_pv_data, base); } +struct drm_encoder *vc4_get_crtc_encoder(struct drm_crtc *crtc, + struct drm_atomic_state *state, + struct drm_connector_state *(*get_state)(struct drm_atomic_state *state, + struct drm_connector *connector)); + struct vc4_crtc_state { struct drm_crtc_state base; /* Dlist area for this CRTC configuration. */ |