Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xiongwei Song and committed by
Jyri Sarha
584d4ed8 1775ede0

+1 -1
+1 -1
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
··· 272 272 LCDC_V2_CORE_CLK_EN); 273 273 } 274 274 275 - uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode) 275 + static uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode) 276 276 { 277 277 return (uint) div_u64(1000llu * mode->htotal * mode->vtotal, 278 278 mode->clock);