]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: i.MX video: declare displays and display_count publicly
authorEric Nelson <eric.nelson@boundarydevices.com>
Tue, 30 Sep 2014 22:40:04 +0000 (15:40 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 21 Oct 2014 08:47:14 +0000 (10:47 +0200)
Declare displays[] and display_count in imx-common/video.h to
prevent "Should it be static?" messages when compiling board
files with "make C=1".

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
arch/arm/imx-common/video.c
arch/arm/include/asm/imx-common/video.h

index 0121cd78f27694629b49f50890642a0500a3d27e..8651b80ce0672f86334b7034fe27b889d30d2080 100644 (file)
@@ -6,9 +6,6 @@
 #include <asm/errno.h>
 #include <asm/imx-common/video.h>
 
-extern struct display_info_t const displays[];
-extern size_t display_count;
-
 int board_video_skip(void)
 {
        int i;
index 2d948508d574f51f18d4f0071d159874083f05e9..1a907d44e405a4a51898f9d3eab6da833101633b 100644 (file)
@@ -21,4 +21,9 @@ struct display_info_t {
 extern int detect_hdmi(struct display_info_t const *dev);
 #endif
 
+#ifdef CONFIG_IMX_VIDEO_SKIP
+extern struct display_info_t const displays[];
+extern size_t display_count;
+#endif
+
 #endif