aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2014-04-01 18:22:34 -0400
committerRob Clark <robdclark@gmail.com>2014-04-01 20:11:28 -0400
commitaf93629d1524dfff7df215b7de692f4de5ee855f (patch)
tree920f905fd15c581e8af4b8fdd7d3d108f703ebe1
parent2b79dc13dc88c72c89fc9c4e4589bfc1139a441d (diff)
drm: Make drm_crtc_check_viewport non-static
This function will be used by the universal plane helpers and may also be useful for individual drivers. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Rob Clark <robdclark@gmail.com>
-rw-r--r--drivers/gpu/drm/drm_crtc.c20
-rw-r--r--include/drm/drm_crtc.h4
2 files changed, 17 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 7def92b8acc2..99e6b229bb38 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -2186,14 +2186,19 @@ int drm_mode_set_config_internal(struct drm_mode_set *set)
2186} 2186}
2187EXPORT_SYMBOL(drm_mode_set_config_internal); 2187EXPORT_SYMBOL(drm_mode_set_config_internal);
2188 2188
2189/* 2189/**
2190 * Checks that the framebuffer is big enough for the CRTC viewport 2190 * drm_crtc_check_viewport - Checks that a framebuffer is big enough for the
2191 * (x, y, hdisplay, vdisplay) 2191 * CRTC viewport
2192 * @crtc: CRTC that framebuffer will be displayed on
2193 * @x: x panning
2194 * @y: y panning
2195 * @mode: mode that framebuffer will be displayed under
2196 * @fb: framebuffer to check size of
2192 */ 2197 */
2193static int drm_crtc_check_viewport(const struct drm_crtc *crtc, 2198int drm_crtc_check_viewport(const struct drm_crtc *crtc,
2194 int x, int y, 2199 int x, int y,
2195 const struct drm_display_mode *mode, 2200 const struct drm_display_mode *mode,
2196 const struct drm_framebuffer *fb) 2201 const struct drm_framebuffer *fb)
2197 2202
2198{ 2203{
2199 int hdisplay, vdisplay; 2204 int hdisplay, vdisplay;
@@ -2224,6 +2229,7 @@ static int drm_crtc_check_viewport(const struct drm_crtc *crtc,
2224 2229
2225 return 0; 2230 return 0;
2226} 2231}
2232EXPORT_SYMBOL(drm_crtc_check_viewport);
2227 2233
2228/** 2234/**
2229 * drm_mode_setcrtc - set CRTC configuration 2235 * drm_mode_setcrtc - set CRTC configuration
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 3894f85dcdff..2765a4eea4cc 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -882,6 +882,10 @@ extern int drm_plane_init(struct drm_device *dev,
882 bool priv); 882 bool priv);
883extern void drm_plane_cleanup(struct drm_plane *plane); 883extern void drm_plane_cleanup(struct drm_plane *plane);
884extern void drm_plane_force_disable(struct drm_plane *plane); 884extern void drm_plane_force_disable(struct drm_plane *plane);
885extern int drm_crtc_check_viewport(const struct drm_crtc *crtc,
886 int x, int y,
887 const struct drm_display_mode *mode,
888 const struct drm_framebuffer *fb);
885 889
886extern void drm_encoder_cleanup(struct drm_encoder *encoder); 890extern void drm_encoder_cleanup(struct drm_encoder *encoder);
887 891