diff options
author | Eric Nelson <eric.nelson@boundarydevices.com> | 2014-09-30 15:40:04 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-10-21 10:47:14 +0200 |
commit | a5a9fba42b34f9503e5a496a0c52df18a762abd5 (patch) | |
tree | 2889fb93459e9b23185613fc9206c3fecb66291b /arch/arm | |
parent | 3acb011c3c2c26cb6a6ee1b1d61ab8992b4f140b (diff) |
ARM: i.MX video: declare displays and display_count publicly
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/imx-common/video.c | 3 | ||||
-rw-r--r-- | arch/arm/include/asm/imx-common/video.h | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/imx-common/video.c b/arch/arm/imx-common/video.c index 0121cd78f2..8651b80ce0 100644 --- a/arch/arm/imx-common/video.c +++ b/arch/arm/imx-common/video.c @@ -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; diff --git a/arch/arm/include/asm/imx-common/video.h b/arch/arm/include/asm/imx-common/video.h index 2d948508d5..1a907d44e4 100644 --- a/arch/arm/include/asm/imx-common/video.h +++ b/arch/arm/include/asm/imx-common/video.h @@ -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 |