drm/tilcdc: make tilcdc_mode_hvtotal() static
authorXiongwei Song <sxwjean@gmail.com>
Sat, 2 Dec 2017 11:24:22 +0000 (19:24 +0800)
committerJyri Sarha <jsarha@ti.com>
Mon, 18 Dec 2017 20:29:21 +0000 (22:29 +0200)
The function tilcdc_mode_hvtotal is local to the source and does not need
to be in global scope, so make it static.

drivers/gpu/drm/tilcdc/tilcdc_crtc.c:297:6: warning: no previous prototype for 'tilcdc_mode_hvtotal' [-Wmissing-prototypes]
 uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode)

Signed-off-by: Xiongwei Song <sxwjean@gmail.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c

index b81a593aefb20193a3a5c69a0238dc1620aa330d..8bf6bb93dc790ef90fed82c8efb903f090e7fc7c 100644 (file)
@@ -272,7 +272,7 @@ static void tilcdc_crtc_set_clk(struct drm_crtc *crtc)
                                LCDC_V2_CORE_CLK_EN);
 }
 
-uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode)
+static uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode)
 {
        return (uint) div_u64(1000llu * mode->htotal * mode->vtotal,
                              mode->clock);