summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tilcdc
diff options
context:
space:
mode:
authorXiongwei Song <sxwjean@gmail.com>2017-12-02 12:24:22 +0100
committerJyri Sarha <jsarha@ti.com>2017-12-18 21:29:21 +0100
commit584d4ed80e93889c54daeee75243c765f9d1e879 (patch)
tree7d5158713c187333f781152ddcf9bd08acfc1c75 /drivers/gpu/drm/tilcdc
parentdrm/tilcdc: Remove drm_framebuffer_get() and *_put() calls (diff)
downloadlinux-584d4ed80e93889c54daeee75243c765f9d1e879.tar.xz
linux-584d4ed80e93889c54daeee75243c765f9d1e879.zip
drm/tilcdc: make tilcdc_mode_hvtotal() static
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>
Diffstat (limited to 'drivers/gpu/drm/tilcdc')
-rw-r--r--drivers/gpu/drm/tilcdc/tilcdc_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
index b81a593aefb2..8bf6bb93dc79 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
@@ -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);