drm/i915: Make intel_set_mode() static
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 8 Aug 2013 21:28:59 +0000 (22:28 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 9 Aug 2013 08:46:15 +0000 (10:46 +0200)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h

index 1fd891554e5fc8ac0933c2c2d513ba1b09fefde3..2972a0d687171b8516fa6ba7f5841599f7adfef6 100644 (file)
@@ -50,6 +50,10 @@ static void i9xx_crtc_clock_get(struct intel_crtc *crtc,
 static void ironlake_crtc_clock_get(struct intel_crtc *crtc,
                                    struct intel_crtc_config *pipe_config);
 
+static int intel_set_mode(struct drm_crtc *crtc, struct drm_display_mode *mode,
+                         int x, int y, struct drm_framebuffer *old_fb);
+
+
 typedef struct {
        int     min, max;
 } intel_range_t;
@@ -8732,9 +8736,9 @@ out:
        return ret;
 }
 
-int intel_set_mode(struct drm_crtc *crtc,
-                    struct drm_display_mode *mode,
-                    int x, int y, struct drm_framebuffer *fb)
+static int intel_set_mode(struct drm_crtc *crtc,
+                         struct drm_display_mode *mode,
+                         int x, int y, struct drm_framebuffer *fb)
 {
        int ret;
 
index a70a0d04a0e532b332784bd7c62752fc7a24b6e9..01455aa8b8bb004328425910720b207ac2294163 100644 (file)
@@ -576,8 +576,6 @@ struct intel_set_config {
        bool mode_changed;
 };
 
-extern int intel_set_mode(struct drm_crtc *crtc, struct drm_display_mode *mode,
-                         int x, int y, struct drm_framebuffer *old_fb);
 extern void intel_crtc_restore_mode(struct drm_crtc *crtc);
 extern void intel_crtc_load_lut(struct drm_crtc *crtc);
 extern void intel_crtc_update_dpms(struct drm_crtc *crtc);