[PATCH 20/40] video: Correct docs for video_index_to_colour()

Simon Glass sjg at chromium.org
Thu Jun 1 18:22:44 CEST 2023


This uses the private data of the video uclass, not the console uclass
(its child). Update the comment to avoid confusion.

Signed-off-by: Simon Glass <sjg at chromium.org>
Fixes: a032e4b55ea ("video: Move console colours to the video uclass")
---

 include/video.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/video.h b/include/video.h
index e5b0db294734..dd0d55baa31a 100644
--- a/include/video.h
+++ b/include/video.h
@@ -162,7 +162,7 @@ enum colour_idx {
  * The caller has to guarantee that the color index is less than
  * VID_COLOR_COUNT.
  *
- * @priv	private data of the console device
+ * @priv	private data of the video device (UCLASS_VIDEO)
  * @idx		color index
  * Return:	color value
  */
-- 
2.41.0.rc0.172.g3f132b7071-goog



More information about the U-Boot mailing list