mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00
video: Use enum with video_index_to_colour()
Use the provided enum with this function, so it is clearer what should be passed to it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
9af341502c
commit
2d6ee92c6a
2 changed files with 3 additions and 3 deletions
|
@ -260,7 +260,7 @@ static const struct vid_rgb colours[VID_COLOUR_COUNT] = {
|
|||
{ 0xff, 0xff, 0xff }, /* white */
|
||||
};
|
||||
|
||||
u32 video_index_to_colour(struct video_priv *priv, unsigned int idx)
|
||||
u32 video_index_to_colour(struct video_priv *priv, enum colour_idx idx)
|
||||
{
|
||||
switch (priv->bpix) {
|
||||
case VIDEO_BPP16:
|
||||
|
|
|
@ -164,10 +164,10 @@ enum colour_idx {
|
|||
* VID_COLOR_COUNT.
|
||||
*
|
||||
* @priv private data of the video device (UCLASS_VIDEO)
|
||||
* @idx color index
|
||||
* @idx color index (e.g. VID_YELLOW)
|
||||
* Return: color value
|
||||
*/
|
||||
u32 video_index_to_colour(struct video_priv *priv, unsigned int idx);
|
||||
u32 video_index_to_colour(struct video_priv *priv, enum colour_idx idx);
|
||||
|
||||
/**
|
||||
* video_reserve() - Reserve frame-buffer memory for video devices
|
||||
|
|
Loading…
Add table
Reference in a new issue