]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:13:42 +0000 (12:13 +0200)
[ Upstream commit 0f168e7be696a17487e83d1d47e5a408a181080f ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/core/fbcon.c

index c98786996c64719f7adccb517d7f04981c4b7754..678d2802760c8c52f7d96a942a7221ec3431aa3b 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];