aboutsummaryrefslogtreecommitdiff
path: root/include/video_console.h
diff options
context:
space:
mode:
authorSimon Glass2020-07-02 21:12:18 -0600
committerBin Meng2020-07-09 12:33:24 +0800
commit2d7c268b595de374556601048d5cc18c367020ac (patch)
treedac39b4c3e9717ae60ba0565a578b72d3dcb1805 /include/video_console.h
parent9beb364a2844605ae664c048853bcfef769f9464 (diff)
video: Drop unnecessary #ifdef around vid_console_color()
All of the functions in this file only apply if DM_VIDEO is enabled. Drop the #ifdef as it just clutters things up. Add the needed forward declaration. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/video_console.h')
-rw-r--r--include/video_console.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/video_console.h b/include/video_console.h
index 0936ceaaf1c..d3bc0631653 100644
--- a/include/video_console.h
+++ b/include/video_console.h
@@ -8,6 +8,8 @@
#include <video.h>
+struct video_priv;
+
#define VID_FRAC_DIV 256
#define VID_TO_PIXEL(x) ((x) / VID_FRAC_DIV)
@@ -241,8 +243,6 @@ int vidconsole_put_string(struct udevice *dev, const char *str);
void vidconsole_position_cursor(struct udevice *dev, unsigned col,
unsigned row);
-#ifdef CONFIG_DM_VIDEO
-
/**
* vid_console_color() - convert a color code to a pixel's internal
* representation
@@ -257,5 +257,3 @@ void vidconsole_position_cursor(struct udevice *dev, unsigned col,
u32 vid_console_color(struct video_priv *priv, unsigned int idx);
#endif
-
-#endif