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

staging: imx-drm: imx-tve: Fix a sparse warning

This patch declares the function of_get_tve_mode
as a static one to fix this sparse warning:
drivers/staging/imx-drm/imx-tve.c:563:11: warning: \
symbol 'of_get_tve_mode' was not declared. \
Should it be static?

Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Liu Ying and committed by
Greg Kroah-Hartman
7fc6cb28 8a3cecf5

+1 -1
+1 -1
drivers/staging/imx-drm/imx-tve.c
··· 560 560 [TVE_MODE_VGA] = "vga", 561 561 }; 562 562 563 - const int of_get_tve_mode(struct device_node *np) 563 + static const int of_get_tve_mode(struct device_node *np) 564 564 { 565 565 const char *bm; 566 566 int ret, i;