From 2d6ee92c6af06eeb7f7410180d5faa8f5e840bbb Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 1 Jun 2023 10:22:48 -0600 Subject: 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 --- include/video.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/video.h') diff --git a/include/video.h b/include/video.h index 55e9f32f593..e98d0f9c895 100644 --- a/include/video.h +++ b/include/video.h @@ -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 -- cgit v1.2.3