]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fbcon: Fix outdated registered_fb reference in comment
authorShixiong Ou <oushixiong@kylinos.cn>
Wed, 9 Jul 2025 10:34:38 +0000 (18:34 +0800)
committerSimona Vetter <simona.vetter@ffwll.ch>
Wed, 9 Jul 2025 13:28:08 +0000 (15:28 +0200)
The variable was renamed to fbcon_registered_fb, but this comment was
not updated along with the change. Correct it to avoid confusion.

Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
Fixes: efc3acbc105a ("fbcon: Maintain a private array of fb_info")
[sima: Add Fixes: line.]
Signed-off-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250709103438.572309-1-oushixiong1025@163.com
drivers/video/fbdev/core/fbcon.c

index 25684f5d652340e200cab7561f3f29b31ffb7f89..d8eab4859fd4612ed4855bd99c319e58e9cdea18 100644 (file)
@@ -953,13 +953,13 @@ static const char *fbcon_startup(void)
        int rows, cols;
 
        /*
-        *  If num_registered_fb is zero, this is a call for the dummy part.
+        *  If fbcon_num_registered_fb is zero, this is a call for the dummy part.
         *  The frame buffer devices weren't initialized yet.
         */
        if (!fbcon_num_registered_fb || info_idx == -1)
                return display_desc;
        /*
-        * Instead of blindly using registered_fb[0], we use info_idx, set by
+        * Instead of blindly using fbcon_registered_fb[0], we use info_idx, set by
         * fbcon_fb_registered();
         */
        info = fbcon_registered_fb[info_idx];