diff options
| author | Simon Glass <[email protected]> | 2023-06-01 10:22:48 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-07-14 12:54:51 -0400 |
| commit | 2d6ee92c6af06eeb7f7410180d5faa8f5e840bbb (patch) | |
| tree | a5448f1c00eaf1e7538be640bf7f5914050d3fbf /drivers | |
| parent | 9af341502c1cdf1d40a41e8fe6c3922f1e409f33 (diff) | |
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 <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/video-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index d304e92c244..95e874b770b 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -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: |
