mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
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>
This commit is contained in:
parent
9beb364a28
commit
2d7c268b59
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue